Versions in this module Expand all Collapse all v0 v0.1.0 Oct 9, 2025 Changes in this version + var ErrDuplicateProtoFile = errors.New("duplicate proto file") + var ErrFileDescriptorIsNil = errors.New("file descriptor is nil") + var ErrFileHasNoKnownDescriptor = errors.New("file has no known descriptor") + var ErrGenerateCommandIsNil = errors.New("generate command is nil") + var ErrGeneratedFileHasNoContent = errors.New("generated file has no content") + var ErrProtoFileNameIsEmpty = errors.New("proto file name is empty") + var ErrRequestCompilerVersionIsNil = errors.New("request compiler version is nil") + var ErrUnableToParseOptions = errors.New("unable to parse options") + type GenerateCommand struct + Generate func(pl *PluginContext) error + MaximumEdition descriptorpb.Edition + MinimumEdition descriptorpb.Edition + Name string + Options []opts.Option + SupportedFeatures uint64 + ValidateCodeGeneratorRequest func(req *pluginpb.CodeGeneratorRequest) error + Version string + func (cmd *GenerateCommand) Run() error + type GeneratedFile struct + func (g *GeneratedFile) Content() []byte + func (g *GeneratedFile) Fprint(v ...any) (int, error) + func (g *GeneratedFile) Fprintf(format string, v ...any) (int, error) + func (g *GeneratedFile) P(v ...any) (int, error) + func (g *GeneratedFile) Write(p []byte) (int, error) + type PluginContext struct + ErrorMessage error + Files []*descriptorpb.FileDescriptorProto + FilesByName map[string]*descriptorpb.FileDescriptorProto + FilesToGenerate map[string]bool + Request *pluginpb.CodeGeneratorRequest + func (pl *PluginContext) NewGeneratedFile(filename string) *GeneratedFile