package msgfmt
import "google.golang.org/protobuf/internal/msgfmt"
Package msgfmt implements a text marshaler combining the desirable features of both the JSON and proto text formats. It is optimized for human readability and has no associated deserializer.
Index ¶
- func Format(m proto.Message) string
- func FormatValue(v protoreflect.Value, fd protoreflect.FieldDescriptor) string
Functions ¶
func Format ¶
Format returns a formatted string for the message.
func FormatValue ¶
func FormatValue(v protoreflect.Value, fd protoreflect.FieldDescriptor) string
FormatValue returns a formatted string for an arbitrary value.
Source Files ¶
format.go
- Version
- v1.36.5 (latest)
- Published
- Feb 6, 2025
- Platform
- linux/amd64
- Imports
- 14 packages
- Last checked
- 10 hours ago –
Tools for package owners.