📌  相关文章
📜  golang 遍历 map - Go 编程语言代码示例

📅  最后修改于: 2022-03-11 14:44:59.317000             🧑  作者: Mango

代码示例1
var m = map[string]string{}
m["key"] = "value"
m["someOtherKey"] = "someOtherValue"

for key, value := range m {
  fmt.Println(fmt.Sprintf("%s : %s", key, value))
}