overflow_commons_go/modules/config/util/Util.go

15 lines
245 B
Go
Raw Normal View History

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