check if theres an element on a map gonalng code example Example: golang check if key is in map if val, ok := dict["foo"]; ok { //do something here }