Answers for "go remove from map"

Go
3

go remove from map

m := map[string]string{"key1": "val1", "key2": "val2"}
delete(m, "key1")
Posted by: Guest on April-10-2020

Browse Popular Code Answers by Language