You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
110 117 108 108 is literally the string null.
You are parsing null into a []string which gives you []string(nil), you are then serializing the []string(nil) you just got to the json object: null.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Not test yet
What operating system and processor architecture are you using (
go env
)?MacOS
go env
OutputWhat did you do?
I run the code below
What did you expect to see?
The marshlled bytes for list should be [91, 93]
What did you see instead?
The marshlled bytes for list is [110 117 108 108]
The text was updated successfully, but these errors were encountered: