Versions in this module Expand all Collapse all v0 v0.5.0 Apr 13, 2022 Changes in this version + const ProtoPkg + func KeySize(fieldNumber protoreflect.FieldNumber, wireType protowire.Type) int + func ProtoWireType(k protoreflect.Kind) protowire.Type + func RegisterFeature(name string, feat Feature) + type ByteSlice struct + func GetByteSlice() *ByteSlice + func (bs *ByteSlice) GenerateCode(importPath protogen.GoImportPath, p *GeneratedFile) + func (bs *ByteSlice) GetBytesPoolName(goIdent protogen.GoIdent) string + type Extensions struct + Poolable map[protogen.GoIdent]bool + type Feature func(gen *GeneratedFile) FeatureGenerator + type FeatureGenerator interface + GenerateFile func(file *protogen.File) bool + GenerateHelpers func() + type GeneratedFile struct + Ext *Extensions + LocalPackages map[string]bool + func (b *GeneratedFile) Alloc(vname string, message *protogen.Message) + func (b *GeneratedFile) ShouldPool(message *protogen.Message) bool + func (p *GeneratedFile) FieldGoType(field *protogen.Field) (goType string, pointer bool) + func (p *GeneratedFile) Ident(path, ident string) string + func (p *GeneratedFile) IsLocalMessage(message *protogen.Message) bool + type Generator struct + func NewGenerator(allFiles []*protogen.File, featureNames []string, ext *Extensions) (*Generator, error) + func (gen *Generator) GenerateFile(gf *protogen.GeneratedFile, file *protogen.File) bool