📅  最后修改于: 2022-03-11 14:44:59.317000             🧑  作者: Mango
var m = map[string]string{}
m["key"] = "value"
m["someOtherKey"] = "someOtherValue"
for key, value := range m {
fmt.Println(fmt.Sprintf("%s : %s", key, value))
}