I have one dictionary
a = {1:11, 2:22}
I want to check if key in b
is present in a
or not
b = {3:33, 1:11}
How can I do this in Go language?
I have done it like this:
a:= make(map[string][]string)
a["1"] = append(a["1"], "11")
a["1"] = append(a["1"], "22")
I have a dict b
as:
b:= make(map[string]string)
b["1"] = "11"
How can I check this? Essentially, I want to check if key 1
from b
is present in a
or not.