Bagaimana cara memeriksa apakah nilai exiets in peta di go

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