15 lines
253 B
Go
Raw Normal View History

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