We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
type Foo struct { Name string `jsonapi:"attr,name"` CreatedOn time.Time `jsonapi:"attr,createdOn"` } type Bar struct { Foo ID string `jsonapi:"primary,bars"` Last string `jsonapi:"attr,last"` }
Marshaling Bar struct, ignores embedded fields from Foo (i.e. name, createdOn)