type genExpansion … // We only want to call GenerateType() once per group. func (g *genExpansion) Filter(c *generator.Context, t *types.Type) bool { … } func (g *genExpansion) GenerateType(c *generator.Context, t *types.Type, w io.Writer) error { … } var expansionInterfaceTemplate …