Documentation ¶
Index ¶
- func GenGetArguments(keys []MapKey) string
- func GenGetParams(keys []MapKey) string
- func GenerateCommonHeader(gen *protogen.Plugin, g *protogen.GeneratedFile, version string)
- func GenerateFileHeader(gen *protogen.Plugin, file *protogen.File, g *protogen.GeneratedFile, ...)
- func KeywordEscape(str string) string
- func NeedGenOrderedMap(md protoreflect.MessageDescriptor) bool
- func ParseCppClassType(md protoreflect.MessageDescriptor) string
- func ParseCppType(fd protoreflect.FieldDescriptor) string
- func ToConstRefType(cpptype string) string
- type MapKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenGetArguments ¶
GenGetArguments generates function arguments, which are the real values passed to the function.
func GenGetParams ¶
GenGetParams generates function parameters, which are the names listed in the function's definition.
func GenerateCommonHeader ¶
func GenerateCommonHeader(gen *protogen.Plugin, g *protogen.GeneratedFile, version string)
func GenerateFileHeader ¶
func KeywordEscape ¶
func NeedGenOrderedMap ¶
func NeedGenOrderedMap(md protoreflect.MessageDescriptor) bool
func ParseCppClassType ¶
func ParseCppClassType(md protoreflect.MessageDescriptor) string
func ParseCppType ¶
func ParseCppType(fd protoreflect.FieldDescriptor) string
ParseCppType converts a FieldDescriptor to C++ type string.
func ToConstRefType ¶
Types ¶
type MapKey ¶
func AddMapKey ¶
func AddMapKey(fd protoreflect.FieldDescriptor, keys []MapKey) []MapKey
Click to show internal directories.
Click to hide internal directories.