Whose Error Is It?
Go printed this
panic: assignment to entry in nil map
What it meansYou wrote to a map variable that was declared but never initialized, and writes to a nil map panic in Go while reads do not.
The first thing to checkInitialize the map with make(map[K]V) or a literal before writing, and check struct fields of map type since they start out nil too.