Documentation
¶
Overview ¶
Code generated by confx-gen. DO NOT EDIT.
Index ¶
- func Get(key string) interface{}
- func GetBool(key string) bool
- func GetDuration(key string) time.Duration
- func GetFloat64(key string) float64
- func GetInt(key string) int
- func GetInt32(key string) int32
- func GetInt64(key string) int64
- func GetIntSlice(key string) []int
- func GetString(key string) string
- func GetStringMap(key string) map[string]interface{}
- func GetStringMapString(key string) map[string]string
- func GetStringMapStringSlice(key string) map[string][]string
- func GetStringSlice(key string) []string
- func GetTime(key string) time.Time
- func GetUint(key string) uint
- func GetUint32(key string) uint32
- func GetUint64(key string) uint64
- func Init(opts ...Opt)
- func SaveConfig() error
- func SaveConfigAs(file string) error
- func SetDefault(key string, value interface{})
- type Config
- type Opt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDuration ¶
func GetFloat64 ¶
func GetIntSlice ¶
func GetStringMap ¶
func GetStringMapString ¶
func GetStringMapStringSlice ¶
func GetStringSlice ¶
func SaveConfig ¶ added in v0.1.9
func SaveConfig() error
func SaveConfigAs ¶ added in v0.1.10
func SetDefault ¶
func SetDefault(key string, value interface{})
Types ¶
type Opt ¶
type Opt func(*Config)
func SetAutoCreate ¶ added in v0.1.12
func SetDefaultValue ¶ added in v0.1.9
func SetFileExt ¶
func SetFileName ¶
Click to show internal directories.
Click to hide internal directories.