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
foo.go:20:12: Error return value of `encoding/json.Marshal` is not checked: unsafe type `main.Foo` found
However, for json.Marshaler it does not seem to hold; if MarshalText is changed to MarshalJSON in the example, thus making it implement json.Marshaler, no error is provoked. This is with 0.2.2.
The text was updated successfully, but these errors were encountered:
From README.md, things treated as unsafe:
For
encoding.TextMarshaler
it seems to hold:...gives
However, for
json.Marshaler
it does not seem to hold; ifMarshalText
is changed toMarshalJSON
in the example, thus making it implementjson.Marshaler
, no error is provoked. This is with 0.2.2.The text was updated successfully, but these errors were encountered: