golang map has key

156

golang map has key -

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

Comments

Submit
0 Comments