Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigSet ¶
func GetConfigSet ¶
func GetConfigSet() *ConfigSet
func ParseConfig ¶
Parse configuration Do it in this order
- Read config files a. /etc/ <key>.yaml <key>.json <key>.ini <key> b. homedir/<key> config.yaml config.json config.ini config c. homedir .<key>.yaml .<key>.json .<key>.ini .<key> d. Current working directory .<key>.yaml .<key>.json .<key>.ini .<key>
- Read environment variables parse environment variables in the form KEY_one_two as one.two
- Read command lines ???
func (*ConfigSet) BindValues ¶
Click to show internal directories.
Click to hide internal directories.