Bagaimana cara memeriksa apakah ada nilai di peta golang
if val, ok := dict["foo"]; ok {
//do something here
}
Pleasant Panther
if val, ok := dict["foo"]; ok {
//do something here
}