Q:

golang map has key

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

New to Communities?

Join the community