golang map has key

169

golang map has key -

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

Comments

Submit
0 Comments