Documentation ¶
Index ¶
- func GenerateImport(name string, importPath string, g *protogen.GeneratedFile) string
- func GetBaseTypeOption[T any](desc protoreflect.Descriptor, xt protoreflect.ExtensionType, def T) T
- func GetOption[T any](desc protoreflect.Descriptor, xt protoreflect.ExtensionType, def T) T
- func GetStructTypeOption[T any](desc protoreflect.Descriptor, xt protoreflect.ExtensionType, def *T) *T
- func SetExtension[T any](desc protoreflect.Descriptor, extension *protoimpl.ExtensionInfo, value T)
- type BaseType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateImport ¶
func GenerateImport(name string, importPath string, g *protogen.GeneratedFile) string
func GetBaseTypeOption ¶
func GetBaseTypeOption[T any](desc protoreflect.Descriptor, xt protoreflect.ExtensionType, def T) T
func GetOption ¶
func GetOption[T any](desc protoreflect.Descriptor, xt protoreflect.ExtensionType, def T) T
func GetStructTypeOption ¶
func GetStructTypeOption[T any](desc protoreflect.Descriptor, xt protoreflect.ExtensionType, def *T) *T
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.