4 ms·
The zero value of a map is indeed nil in Go: This prints true (https://go.dev/play/p/8dXgo8y2KTh https://go.dev/play/p/8dXgo8y2KTh): var m map[string]int
by atombender 1y ago
The zero value of a map is indeed nil in Go: This prints true (https://go.dev/play/p/8dXgo8y2KTh https://go.dev/play/p/8dXgo8y2KTh):
var m map[string]int
println(m == nil)
- binary132 1y agoOk, true!