Documentation ¶
Index ¶
- Constants
- type Cfg
- func (c Cfg) Get(key string) interface{}
- func (c Cfg) GetBool(key string) interface{}
- func (c Cfg) GetBoolMust(key string, def bool) bool
- func (c Cfg) GetFloat64(key string) interface{}
- func (c Cfg) GetFloat64Must(key string, def float64) float64
- func (c Cfg) GetInt(key string) interface{}
- func (c Cfg) GetInt64(key string) interface{}
- func (c Cfg) GetInt64Must(key string, def int64) int64
- func (c Cfg) GetIntMust(key string, def int) int
- func (c Cfg) GetMust(key string, def string) string
- func (c Cfg) GetValue(key string, flag int, def interface{}) interface{}
Constants ¶
View Source
const ( CFG_BOOL = iota CFG_FLOAT64 CFG_INT CFG_INT64 CFG_STRING )
获取值类型
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cfg ¶
type Cfg struct {
// contains filtered or unexported fields
}
func (Cfg) GetFloat64Must ¶
根据键名获取值[必须]
Click to show internal directories.
Click to hide internal directories.