func newProtobufPackage(packagePath, packageDir, packageName string, generateAll bool, omitFieldTypes map[types.Name]struct{ … } type protobufPackage … func (p *protobufPackage) Clean() error { … } func (p *protobufPackage) ProtoTypeName() types.Name { … } func (p *protobufPackage) filterFunc(c *generator.Context, t *types.Type) bool { … } func (p *protobufPackage) HasGoType(name string) bool { … } func (p *protobufPackage) OptionalTypeName(name string) bool { … } func (p *protobufPackage) ExtractGeneratedType(t *ast.TypeSpec) bool { … } func (p *protobufPackage) generatorsFunc(c *generator.Context) []generator.Generator { … } func (p *protobufPackage) GoPackageName() string { … } func (p *protobufPackage) ImportPath() string { … } func (p *protobufPackage) OutputPath() string { … } var _ …