Suppose I have a map like:
m := map[string]interface{}{}
Now I get a string "a"
, I want to know if there's value in m["a"]
, how can I tell?
As I can see now, m["a"]
is never nil
, so I can't compare it to nil to see if there's anything. Also, there's not a keyword named undefined
to do that..