Documentation ¶
Index ¶
- type Config
- func (c *Config) AllSettings() map[string]interface{}
- func (c *Config) Bool(key string) bool
- func (c *Config) Duration(key string) time.Duration
- func (c *Config) Float64(key string) float64
- func (c *Config) Int(key string) int
- func (c *Config) IsSet(key string) bool
- func (c *Config) Set(key string, value interface{})
- func (c *Config) String(key string) string
- func (c *Config) StringMap(key string) map[string]interface{}
- func (c *Config) StringMapString(key string) map[string]string
- func (c *Config) StringSlice(key string) []string
- func (c *Config) Time(key string) time.Time
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config is custom application configuration.
func NewConfig ¶
NewConfig sets up the app configuration, setting default values and configurations.
func NewDefaultConfig ¶
NewDefaultConfig returns a new Config with default values
func (*Config) AllSettings ¶
AllSettings returns all settings as map.
func (*Config) StringMapString ¶
StringMapString returns a key's value as map[string]string.
func (*Config) StringSlice ¶
StringSlice returns a key's value as []string.
Click to show internal directories.
Click to hide internal directories.