In Go, when you want to unmarshall a json into an unexported struct, its fields should be exported. This is because json is a different package and doesn't have the power to view fields unless they are exported.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
In Go, when you want to unmarshall a json into an unexported struct, its fields should be exported. This is because json is a different package and doesn't have the power to view fields unless they are exported.