A Tour of Go explains how to test that a key is present in the map:
m := make(map[string]int)
m["Answer"] = 42
v, ok := m["Answer"]
if ok { Do Something if set }
if !ok { Do Something if not set }
Is there a way to test it without the assignment, expression way, something similar to this:
if m["Answer"] IS NOT NULL { Do Something if set }
if m["Answer"] IS NULL { Do Something if not set }
Or
fmt.Println(m["Answer"] == nil)