Answers for "golang check if key is in map"

Go
3

golang check if key is in map

if val, ok := dict["foo"]; ok {
    //do something here
}
Posted by: Guest on February-23-2020

Browse Popular Code Answers by Language