Documentation ¶
Index ¶
- func NewIllegalConfigError(configKey string) error
- type Config
- func (c *Config) GetBool(key string) bool
- func (c *Config) GetFloat(key string) float64
- func (c *Config) GetInt(key string) int64
- func (c *Config) GetInt64(key string) int64
- func (c *Config) GetSlice(key string) []interface{}
- func (c *Config) GetString(key string) string
- func (c *Config) GetStringSlice(key string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewIllegalConfigError ¶
Types ¶
type Config ¶
type Config struct { Raw []byte // contains filtered or unexported fields }
Config defines the struct of a configuration in general.
func LoadConfigFile ¶
LoadConfigFile loads config information from a JSON file.
func LoadConfigString ¶
LoadConfigString loads config information from a JSON string.
func (*Config) GetStringSlice ¶
Click to show internal directories.
Click to hide internal directories.