type Type struct {
Field map[string]string // map field name to type
Method map[string]string // map method name to comma-separated return types (should start with "func ")
Embed []string // list of types this type embeds (for extra methods)
Def string // definition of named type
}
"Type" beschreibt die Felder und Methoden eines Typs.
Wenn das Feld oder die Methode dort nicht gefunden wird, wird nach der Einbettungsliste gesucht.