Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultValue ¶
func DefaultValue(fld protoreflect.FieldDescriptor) string
DefaultValue returns the string representation of the default value for the given field. If it has no default, this returns the empty string. The string representation is the same as stored in the default_value field of a google.protobuf.FieldDescriptorProto message.
func FormatFloat ¶
FormatFloat returns the string representation of the given floating point value, as used in default values and in option values in proto source. The bitSize is 32 for float values and 64 for double values.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.