Documentation
¶
Index ¶
- Variables
- func AddConfig(name, path string)
- func Close()
- func Commit() error
- func Config(name, key string, def interface{}) interface{}
- func ExeDir() string
- func Flag(name string) string
- func LoadConfigFromFlag(flagName, configName, defaultPath string)
- func Parse()
- func ReadConfig(name, path string) error
- func SetCloseFn(fn func() error)
- func SetConfig(name, key string, value interface{})
- func SetFlag(name, value, usage string) *string
- func SetPreFn(fn func() error)
- func Value(name, configgroup string, def string) string
- func WriteConfig(name string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EnableConfig = true EnableLog = true Log *toolkit.LogEngine )
Functions ¶
func LoadConfigFromFlag ¶
func LoadConfigFromFlag(flagName, configName, defaultPath string)
func ReadConfig ¶
func SetCloseFn ¶
func SetCloseFn(fn func() error)
func WriteConfig ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.