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
file src/encoding/json/decode.go
around the struct docs for the Unmarshall object (around line 39)
// NOTE: you most likely want to "export" your struct fields, to do that, make
// sure the field name starts with an Uppercase character.
// see http://golang.org/ref/spec#Exported_identifiers for more information.
this is basically a drive-by "patch", to make the documentation more sane for go idiots having to wack on some broken code somwhere (i.e. me the go idiot wasting hours digging thru json.Unmarshal because I didn't know I had to "export" my struct. I want other people to not have to waste as much time.
The text was updated successfully, but these errors were encountered:
ianlancetaylor
changed the title
add note in src/encoding/json/decode.go about exporting struct members.
encoding/json: add note in src/encoding/json/decode.go about exporting struct members
Jan 8, 2016
file src/encoding/json/decode.go
around the struct docs for the Unmarshall object (around line 39)
// NOTE: you most likely want to "export" your struct fields, to do that, make
// sure the field name starts with an Uppercase character.
// see http://golang.org/ref/spec#Exported_identifiers for more information.
this is basically a drive-by "patch", to make the documentation more sane for go idiots having to wack on some broken code somwhere (i.e. me the go idiot wasting hours digging thru json.Unmarshal because I didn't know I had to "export" my struct. I want other people to not have to waste as much time.
The text was updated successfully, but these errors were encountered: