Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Superhero ¶
type Superhero struct {
ID int
AffiliationID int
Name string
Life float64
Energy float64
Powers []*Superpower
}
Superhero is a model to which a custom unmarshal method utilizing buger/jsonparser API is attached.
func (*Superhero) UnmarshalJSON ¶
UnmarshalJSON is a method implementing unmarshaler interface and utilizing buger/jsonparser low level API.
type Superpower ¶
Superpower is a model to which a custom unmarshal method utilizing buger/jsonparser API is attached.
func (*Superpower) UnmarshalJSON ¶
func (s *Superpower) UnmarshalJSON(b []byte) error
UnmarshalJSON is a method implementing unmarshaler interface and utilizing buger/jsonparser low level API.
Click to show internal directories.
Click to hide internal directories.