Choose Category
package main import "fmt" func main() { myMap := make(map[string]string) myMap["k1"] = "value1" myMap["k2"] = "value2" _, ifExists := myMap["k2"] fmt.Printf("Key Exists %v \n", ifExists) _, ifExists = myMap["k3"] fmt.Printf("Key Exists %v", ifExists) }