我在Go中创建指向地图的指针时遇到了一些麻烦.如果我正确传递map参数,你能告诉我吗?它将整数值与结构对.
type symbol_table struct{ --- --- --- } //is the map parameter being called correctly? func TD(...,symbolMAP *map[int]symbol_table,...){ --- --- --- } func main(){ symbolMAP:=make(map[int] symbol_table) TD(&symbolMAP) }