type genFakeForGroup … var _ … // We only want to call GenerateType() once per group. func (g *genFakeForGroup) Filter(c *generator.Context, t *types.Type) bool { … } func (g *genFakeForGroup) Namers(c *generator.Context) namer.NameSystems { … } func (g *genFakeForGroup) Imports(c *generator.Context) (imports []string) { … } func (g *genFakeForGroup) GenerateType(c *generator.Context, t *types.Type, w io.Writer) error { … } var groupClientTemplate … var getterImplNamespaced … var getterImplNonNamespaced … var getRESTClient …