export config struct fields, add convenience methods for value fetching

This commit is contained in:
Bradley Cicenas
2017-02-16 04:06:05 +00:00
parent 5bbce31601
commit a1f860a020
8 changed files with 67 additions and 65 deletions

View File

@@ -15,12 +15,12 @@ var (
func Init() {
for _, p := range params {
GlobalParams = append(GlobalParams, p)
log.Debugf("loaded config param: \"%s\": \"%s\"", p.key, p.val)
log.Debugf("loaded config param: \"%s\": \"%s\"", p.Key, p.Val)
}
for _, s := range switches {
GlobalSwitches = append(GlobalSwitches, s)
log.Debugf("loaded config switch: \"%s\": %t", s.key, s.val)
log.Debugf("loaded config switch: \"%s\": %t", s.Key, s.Val)
}
}