Documentation ¶
Index ¶
- func GenGetArguments(keys []MapKey) string
- func GenGetParams(keys []MapKey) string
- func GetTypeEmptyValue(fd protoreflect.FieldDescriptor) string
- func KeywordEscape(str string) string
- func NeedGenOrderedMap(md protoreflect.MessageDescriptor) bool
- func ParseGoType(file *protogen.File, fd protoreflect.FieldDescriptor) 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 GetTypeEmptyValue ¶
func GetTypeEmptyValue(fd protoreflect.FieldDescriptor) string
func KeywordEscape ¶
func NeedGenOrderedMap ¶
func NeedGenOrderedMap(md protoreflect.MessageDescriptor) bool
func ParseGoType ¶
func ParseGoType(file *protogen.File, fd protoreflect.FieldDescriptor) string
ParseGoType converts a FieldDescriptor to Go type string.
Types ¶
Click to show internal directories.
Click to hide internal directories.