According to the Golang documentation on maps,
If the requested key doesn't exist, we get the value type's zero value. In this case the value type is int, so the zero value is 0:
j := m["root"] // j == 0
So I'm trying to determine if a struct exists with a given string, how would I determine this? Would I just check for an empty struct with zerod values? What would the comparison here look like?
type Hello struct{}
structMap := map[string]Hello{}
j := structMap["example"]
if(j==?) {
...
}