overflow_commons_go/modules/config/util/Util.go
crusader 597eda88ed ing
2017-12-01 15:04:31 +09:00

15 lines
253 B
Go

package util
import config "git.loafle.net/overflow/overflow_commons_go/modules/config/model"
func KeysToMap(keys []config.Keys) map[string]string {
m := make(map[string]string)
for _, key := range keys {
m[key.Key] = key.Metric
}
return m
}