Skip to content

Instantly share code, notes, and snippets.

@darthberen
Created October 9, 2014 07:21
Show Gist options
  • Save darthberen/42386956cf70dd33b1fa to your computer and use it in GitHub Desktop.
Save darthberen/42386956cf70dd33b1fa to your computer and use it in GitHub Desktop.
go JSON decoding {} into a map[string]string output
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