Answers for "go map key exists"

Go
6

go map check key exists

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

Browse Popular Code Answers by Language