Documentation ¶
Index ¶
Constants ¶
View Source
const ProtoPkg = "google.golang.org/protobuf/proto"
Variables ¶
This section is empty.
Functions ¶
func KeySize ¶
func KeySize(fieldNumber protoreflect.FieldNumber, wireType protowire.Type) int
func ProtoWireType ¶
func ProtoWireType(k protoreflect.Kind) protowire.Type
func RegisterFeature ¶
Types ¶
type Extensions ¶
type Feature ¶
type Feature func(gen *GeneratedFile, plugin *protogen.Plugin) FeatureGenerator
type FeatureGenerator ¶
type GeneratedFile ¶
type GeneratedFile struct { *protogen.GeneratedFile Ext *Extensions LocalPackages map[string]bool }
func (*GeneratedFile) FieldGoType ¶
func (p *GeneratedFile) FieldGoType(field *protogen.Field) (goType string, pointer bool)
func (*GeneratedFile) Ident ¶
func (p *GeneratedFile) Ident(path, ident string) string
func (*GeneratedFile) IsLocalMessage ¶
func (p *GeneratedFile) IsLocalMessage(message *protogen.Message) bool
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
func NewGenerator ¶
func (*Generator) GenerateFile ¶
Click to show internal directories.
Click to hide internal directories.