Documentation ¶
Index ¶
- Variables
- func AddConfigPath(in string)
- func ConfigFileUsed() string
- func Debug()
- func Get(key string) interface{}
- func GetBool(key string) bool
- func GetFloat64(key string) float64
- func GetInt(key string) int
- func GetString(key string) string
- func GetStringMap(key string) map[string]interface{}
- func GetStringMapString(key string) map[string]string
- func GetStringSlice(key string) []string
- func GetTime(key string) time.Time
- func InConfig(key string) bool
- func IsSet(key string) bool
- func MarshallReader(in io.Reader)
- func ReadInConfig() error
- func RegisterAlias(alias string, key string)
- func Reset()
- func Set(key string, value interface{})
- func SetConfigFile(in string)
- func SetConfigName(in string)
- func SetConfigType(in string)
- func SetDefault(key string, value interface{})
- type UnsupportedConfigError
Constants ¶
This section is empty.
Variables ¶
View Source
var SupportedExts []string = []string{"json", "toml", "yaml"}
extensions Supported
Functions ¶
func AddConfigPath ¶
func AddConfigPath(in string)
func ConfigFileUsed ¶
func ConfigFileUsed() string
func GetFloat64 ¶
func GetStringMap ¶
func GetStringMapString ¶
func GetStringSlice ¶
func MarshallReader ¶
func ReadInConfig ¶
func ReadInConfig() error
func RegisterAlias ¶
func SetConfigFile ¶
func SetConfigFile(in string)
func SetConfigName ¶
func SetConfigName(in string)
func SetConfigType ¶
func SetConfigType(in string)
func SetDefault ¶
func SetDefault(key string, value interface{})
Types ¶
type UnsupportedConfigError ¶
type UnsupportedConfigError string
func (UnsupportedConfigError) Error ¶
func (str UnsupportedConfigError) Error() string
Click to show internal directories.
Click to hide internal directories.