Documentation ¶
Index ¶
- type Config
- func (c Config) Exists(key string) bool
- func (c Config) Get(key string) interface{}
- func (c Config) GetBool(key string) bool
- func (c Config) GetFloat(key string) float64
- func (c Config) GetInt(key string) int
- func (c Config) GetInt64(key string) int64
- func (c Config) GetString(key string) string
- func (c Config) JSON() ([]byte, error)
- func (c Config) Set(key string, value interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config map[string]interface{}
Config encapsulates a map of polymorfic values and provides useful method to lookup and retrieve fields by key.
Config is designed to be read-only and thread-safe.
Click to show internal directories.
Click to hide internal directories.