Detect the existence of items with certain keys in the golang interface code example
Example: golang check if key is in map
if val, ok := dict["foo"]; ok {
//do something here
}
if val, ok := dict["foo"]; ok {
//do something here
}