Documentation ¶
Index ¶
- Constants
- func DefaultBool(key string, def bool) bool
- func DefaultFloat(key string, def float64) float64
- func DefaultInt(key string, def int) int
- func DefaultInt64(key string, def int64) int64
- func DefaultString(key, def string) string
- func GetBool(key string) (bool, error)
- func GetFloat(key string) (float64, error)
- func GetInt(key string) (int, error)
- func GetInt64(key string) (int64, error)
- func GetString(key string) string
- func InitLoad(fileName string)
- func Keys(section string) []string
- func Reload() error
- func WriteContent(content string) (n int, err error)
- func WriteFile(filename, content string) (n int, err error)
Constants ¶
View Source
const ( DevMode = "dev" TestMode = "test" ProdMode = "prod" )
Variables ¶
This section is empty.
Functions ¶
func InitLoad ¶
func InitLoad(fileName string)
InitLoad 读取指定的配置文件
config.InitLoad("my.ini") config.GetString("key")
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.