Versions in this module Expand all Collapse all v1 v1.0.1 Jun 30, 2026 v1.0.0 Jun 30, 2026 Changes in this version + func DecodeFileDescriptors(raws []RawFileDescriptor) ([]*descriptor.FileDescriptor, error) + func Generate(files []*descriptor.FileDescriptor, raws []RawFileDescriptor, ...) (map[string]string, error) + func GenerateAuxFiles(fd *descriptor.FileDescriptor, raw RawFileDescriptor, ...) (map[string]string, error) + func GenerateFile(fd *descriptor.FileDescriptor, raw RawFileDescriptor, ...) (content string, skip bool, err error) + func GenerateMessage(md descriptor.MessageDescriptorAccessor, parentMsgName string, ...) string + func GenerateMessageMethods(md descriptor.MessageDescriptorAccessor, parentMsgName string, ...) string + func GenerateMessages(fd descriptor.FileDescriptorAccessor, currentPkg string, imports ImportTable) string + func GenerateOneof(od descriptor.OneofDescriptorAccessor, msgName string, currentPkg string, ...) string + func GenerateOneofs(md descriptor.MessageDescriptorAccessor, msgName string, currentPkg string, ...) string + func GeneratePoolGC(fd *descriptor.FileDescriptor, currentPkg string, imports ImportTable) string + func GeneratePoolTinyGo(fd *descriptor.FileDescriptor, currentPkg string, imports ImportTable) string + func GenerateServices(fd descriptor.FileDescriptorAccessor, currentPkg string, imports ImportTable) (string, bool) + func GenerateUnsafeGC(fd *descriptor.FileDescriptor, currentPkg string, imports ImportTable) string + func GenerateUnsafeTinyGo(fd *descriptor.FileDescriptor, currentPkg string, imports ImportTable) string + func IsWellKnownProtoFile(protoFilePath string) bool + func IsWellKnownType(fullName string) bool + func ProtoToCamelCase(s string) string + func ProtoToGoType(kind scalar.Kind) string + func QualifiedGoType(fd descriptor.FieldDescriptorAccessor, currentPkg string, imports ImportTable) string + type CodeGeneratorRequest struct + FileToGenerate []string + Parameter string + ProtoFile []RawFileDescriptor + func (r *CodeGeneratorRequest) Unmarshal(b []byte) error + type CodeGeneratorResponse struct + Error *string + File []ResponseFile + func (r *CodeGeneratorResponse) Marshal() ([]byte, error) + func (r *CodeGeneratorResponse) MarshalAppend(b []byte) ([]byte, error) + func (r *CodeGeneratorResponse) Size() int + type GeneratorParams struct + Paths PathMode + func ParseParams(param string) GeneratorParams + type GoPackageInfo struct + ImportPath string + PackageName string + ProtoPackage string + func ResolveGoPackage(goPackage, protoPackage string) GoPackageInfo + type ImportTable struct + func NewImportTable(files []*descriptor.FileDescriptor, raws []RawFileDescriptor) ImportTable + func (t ImportTable) LookupImport(protoFilePath string) GoPackageInfo + type NativeTypeInfo struct + EqualExpr string + GoType string + ImportPath string + MarshalConv string + UnmarshalConv string + WKTType string + ZeroValue string + type PathMode int + const PathModeImport + const PathModeSourceRelative + type RawFileDescriptor struct + Dependency []string + EnumType [][]byte + GoPackage string + MessageType [][]byte + Name string + Options []byte + Package string + Service [][]byte + Syntax string + func (d *RawFileDescriptor) Unmarshal(b []byte) error + type ResponseFile struct + Content string + InsertionPoint string + Name string + func (f *ResponseFile) Marshal() ([]byte, error) + func (f *ResponseFile) MarshalAppend(b []byte) ([]byte, error) + func (f *ResponseFile) Size() int + func (f *ResponseFile) Unmarshal(b []byte) error + type WKTInfo struct + GoImportPath string + GoTypeName string + func LookupWKT(fullName string) (WKTInfo, bool)