Documentation ¶
Overview ¶
The jconfig package provides a simple, basic configuration file parser using JSON.
Index ¶
- type Config
- func (c *Config) GetArray(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) GetMap(key string) map[string]interface{}
- func (c *Config) GetString(key string) string
- func (c *Config) LoadMerge(filename string)
- func (c *Config) StringMerge(s string)
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
}
func LoadConfig ¶
Loads config information from a JSON file
func LoadConfigString ¶
Loads config information from a JSON string
func (*Config) StringMerge ¶
Click to show internal directories.
Click to hide internal directories.