在golang中,如果您创建了一个包含未初始化的映射的结构体,则打印该映射会产生一个非
为什么空映射的“print”输出“map[]”,而不是
<nil>
字符串。为什么空映射的“print”输出“map[]”,而不是
<nil>
?// Assume above there is a struct, a.AA, which is created but which otherwise
// has not created the map.
//output:
//map[]
//map[]
fmt.Println(a.AA)
fmt.Println(make(map[string]int64))