keys := []string{}
In go, is this line creating a new empty map with string as key and value?
keys := []string{}
In go, is this line creating a new empty map with string as key and value?
No, that's creating an empty string slice.
This is an empty map with string as key and value:
keys := map[string]string{}