type registerExternalGenerator … var _ … func (g *registerExternalGenerator) Filter(_ *generator.Context, _ *types.Type) bool { … } func (g *registerExternalGenerator) Imports(c *generator.Context) (imports []string) { … } func (g *registerExternalGenerator) Namers(_ *generator.Context) namer.NameSystems { … } func (g *registerExternalGenerator) Finalize(context *generator.Context, w io.Writer) error { … } var registerExternalTypesTemplate …