So prüfen Sie, ob Value -Exjes in MAP in Go

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