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

Functions

func Format

func Format(m proto.Message) string

Format returns a formatted string for the message.

func FormatValue

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.