Documentation
¶
Index ¶
- func RegisterDecoder(fileType FileType, decoder Decoder)
- type Config
- func (c *Config) Get(key string) interface{}
- func (c *Config) GetBool(key string) bool
- func (c *Config) GetDuration(key string) time.Duration
- func (c *Config) GetFloat64(key string) float64
- func (c *Config) GetInt(key string) int
- func (c *Config) GetIntSlice(key string) []int
- func (c *Config) GetString(key string) string
- func (c *Config) GetStringMap(key string) map[string]interface{}
- func (c *Config) GetStringMapString(key string) map[string]string
- func (c *Config) GetStringSlice(key string) []string
- func (c *Config) GetTime(key string) time.Time
- func (c *Config) LoadConfig() error
- func (c *Config) SetConfigFile(file string)
- type Decoder
- type FileType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterDecoder ¶
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func (*Config) GetFloat64 ¶
func (*Config) GetIntSlice ¶
func (*Config) GetStringMap ¶
func (*Config) GetStringMapString ¶
func (*Config) GetStringSlice ¶
func (*Config) LoadConfig ¶
func (*Config) SetConfigFile ¶
Click to show internal directories.
Click to hide internal directories.