Documentation ¶
Index ¶
- func GenerateImport(name string, importPath string, g *protogen.GeneratedFile) string
- func GetOption[T any](desc protoreflect.Descriptor, xt protoreflect.ExtensionType) (T, bool)
- func GetOptionWithDefault[T any](desc protoreflect.Descriptor, xt protoreflect.ExtensionType, def T) T
- func PrintComments(comments protogen.CommentSet, g *protogen.GeneratedFile)
- func SetExtension[T any](desc protoreflect.Descriptor, extension *protoimpl.ExtensionInfo, value T)
- type BaseType
- type Generator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateImport ¶
func GenerateImport(name string, importPath string, g *protogen.GeneratedFile) string
func GetOption ¶
func GetOption[T any](desc protoreflect.Descriptor, xt protoreflect.ExtensionType) (T, bool)
func GetOptionWithDefault ¶ added in v1.5.11
func GetOptionWithDefault[T any](desc protoreflect.Descriptor, xt protoreflect.ExtensionType, def T) T
func PrintComments ¶
func PrintComments(comments protogen.CommentSet, g *protogen.GeneratedFile)
func SetExtension ¶
func SetExtension[T any](desc protoreflect.Descriptor, extension *protoimpl.ExtensionInfo, value T)
Types ¶
Click to show internal directories.
Click to hide internal directories.