Documentation
¶
Index ¶
- func DefaultString(key, defaultVal string) string
- func Exist(key string) bool
- func GetBool(key string) bool
- func GetDuration(key string) time.Duration
- func GetFloat(key string) float64
- func GetInt(key string) int
- func GetInt64(key string) int64
- func GetIntSlice(key string) []int
- func GetString(key string) string
- func GetStringMap(key string) map[string]string
- func GetStringMapStringSlice(key string) map[string][]string
- func GetStringSlice(key string) []string
- func GetTime(key string) time.Time
- func SetProvider(provider Provider)
- type Config
- func (conf *Config) Exist(key string) bool
- func (conf *Config) GetBool(key string) bool
- func (conf *Config) GetDuration(key string) time.Duration
- func (conf *Config) GetFloat(key string) float64
- func (conf *Config) GetInt(key string) int
- func (conf *Config) GetInt64(key string) int64
- func (conf *Config) GetIntSlice(key string) []int
- func (conf *Config) GetString(key string) string
- func (conf *Config) GetStringMap(key string) map[string]string
- func (conf *Config) GetStringMapStringSlice(key string) map[string][]string
- func (conf *Config) GetStringSlice(key string) []string
- func (conf *Config) GetTime(key string) time.Time
- func (conf *Config) Init() error
- func (conf *Config) Provider(provider Provider)
- type Option
- type Options
- type Provider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultString ¶
func GetDuration ¶
func GetIntSlice ¶
func GetStringMap ¶
func GetStringMapStringSlice ¶
func GetStringSlice ¶
func SetProvider ¶
func SetProvider(provider Provider)
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func (*Config) GetIntSlice ¶
func (*Config) GetStringMapStringSlice ¶
func (*Config) GetStringSlice ¶
Click to show internal directories.
Click to hide internal directories.