Answers for "golang remove from map by value"

Go
5

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