Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
atombender
· 1y ago · 0 comments
The zero value of a map is indeed nil in Go: This prints true (
https://go.dev/play/p/8dXgo8y2KTh
):
var m map[string]int println(m == nil)
Comments
[–]
binary132
1y ago
Ok, true!