KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am having a little trouble creating pointers to maps in Go. Can you please let me know if I am passing the map parameter correctly? It pairs integer values with structs. 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) }
Tags (comma-separated)
Save Edits
Cancel