Check a golang map for a specific key
Check a golang map for a specific key
if val, ok := dict["foo"]; ok {
//key found - do somehting
} else {
//Key does not exist
}
*** Sign up for my email list to keep in touch with all the interesting new happenings in the go community with the GolangNewsFeed