Created
October 9, 2014 07:21
-
-
Save darthberen/42386956cf70dd33b1fa to your computer and use it in GitHub Desktop.
go JSON decoding {} into a map[string]string output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
map1: map[] | |
map2: map[] | |
mapNil: map[] | |
Length of map1: 0 | |
Length of map2: 0 | |
Length of mapNil: 0 | |
1) map1 == map2: false | |
2) map2 == mapNil: true | |
3) map1 == mapNil || len(map1) == len(mapNil): true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment