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
I have a struct which implements json.Marshaler interface by implementing MarshalJSON method on the struct, but this linter complains that I should define struct tags? Why? MarshalJSON does not need/use them.
The text was updated successfully, but these errors were encountered:
I've added support for all the interfaces from json, xml, yaml and toml, your case should be covered now.
Currently, it only works for the value semantics implementations (e.g. func (Foo) MarshalJSON() ...), I'm going to add pointer semantics support after I do some refactoring.
I have a struct which implements
json.Marshaler
interface by implementingMarshalJSON
method on the struct, but this linter complains that I should define struct tags? Why?MarshalJSON
does not need/use them.The text was updated successfully, but these errors were encountered: