encoding/json: Unmarshal of "null" string into map will panic after assignment #10411
Comments
This is working as intended. You're telling it to turn &m into null, and it is, and then you're assigning to a nil map.
|
@bradfitz OK so I guess if that's the intended behavior, why I can still read from the map and it doesn't panic? |
Because that's how the Go language works:
It says:
|
Oh okay good to know :) Thanks Brad. On Friday, April 10, 2015, Brad Fitzpatrick notifications@github.com
|
The text was updated successfully, but these errors were encountered: