Skip to content

Instantly share code, notes, and snippets.

@darthberen
Last active August 29, 2015 14:07
Show Gist options
  • Save darthberen/01f2fbd4ab3e0687aa47 to your computer and use it in GitHub Desktop.
Save darthberen/01f2fbd4ab3e0687aa47 to your computer and use it in GitHub Desktop.
go map comparison output
map1: map[]
map2: map[]
mapNil: map[]
Length of map1: 0
Length of map2: 0
Length of mapNil: 0
1) map1 == map2: true
2) map1 == mapNil: false
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