config

package
v0.0.0-...-4e24f74 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//静态资源目录
	AppResource = "resources"
)

应用目录配置

Functions

func ConfigInit

func ConfigInit()

func GetConfig

func GetConfig(key string) string

func GetConfigInt

func GetConfigInt(key string) int

func GetEFS

func GetEFS() embed.FS

func GetEnv

func GetEnv() string

func IsEnvDev

func IsEnvDev() bool

func IsEnvProd

func IsEnvProd() bool

func ReadFile

func ReadFile(rootPath string) []string

func SetEmbed

func SetEmbed(efs embed.FS)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL