Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Animal ¶
type Animal struct{ Name string }
func ConvertAnimals ¶
func ConvertAnimals(c Converter, input InputAnimals) []Animal
type Converter ¶
type Converter interface { Convert(source Input) Output // used only in extend method ConvertDogs([]Dog) []Animal ConvertCats([]Cat) []Animal }
goverter:converter goverter:extend ConvertAnimals
type Input ¶
type Input struct {
Animals InputAnimals
}
type InputAnimals ¶
Click to show internal directories.
Click to hide internal directories.