[Go] panic: assignment to entry in nil map
摘要:
以上错误出现在给 map 变量赋值的时候。 例如: type AbMap map[string]string var abMap AbMap abMap['a'] = 'b' 使用 map 变量需要使用 make 初始化,然后才能赋值。 type AbMap map[string]string ab 阅读全文
posted @ 2020-09-15 22:33
ercom
阅读(1664)
评论(0)
推荐(0)
浙公网安备 33010602011771号