Пример #1
0
func (c Cat) MarshalJSON() ([]byte, error) {
	return j2n.MarshalJSON(&c.CatData)
}
Пример #2
0
func (d Dog) MarshalJSON() ([]byte, error) {
	return j2n.MarshalJSON(&d.DogData)
}