Comment vérifier si la valeur s'extère dans la carte en Go

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