标签: go
是否可以在地图的键中包含OR运算符?例如
转到:
var a = map[string]int{ "A1"|| "B1": 1, "A2": 2, }
错误:
invalid operation: "A1" || "B1" (operator || not defined on string)
答案 0 :(得分:6)