So überprüfen Sie, ob ein Wert in Map Golang vorhanden ist

if val, ok := dict["foo"]; ok {
    //do something here
}
Pleasant Panther