Documentation ¶
Overview ¶
Package conf a multiconfig-based config
By taka@cmwang.net
Index ¶
- Variables
- func GetBool(key string) bool
- func GetDuration(key string) time.Duration
- func GetFloat64(key string) float64
- func GetInt(key string) int
- func GetInt64(key string) int64
- func GetString(key string) string
- func Set(key string, value interface{})
- func SetDefault(key string, value interface{})
- type Fields
Constants ¶
This section is empty.
Variables ¶
View Source
var Log *log.Logger
Log logger
Functions ¶
func GetDuration ¶
GetDuration returns the value associated with the key as a duration
func GetFloat64 ¶
GetFloat64 returns the value associated with the key as a float64
func Set ¶
func Set(key string, value interface{})
Set set the value for the key in the override regiser.
func SetDefault ¶
func SetDefault(key string, value interface{})
SetDefault set the default value for this key.
Types ¶
Click to show internal directories.
Click to hide internal directories.