package pretty
Import Path
google.golang.org/grpc/internal/pretty (on go.dev)
Dependency Relation
imports 7 packages, and imported by 2 packages
Involved Source Files
Package pretty defines helper functions to pretty-print structs for logging.
Package-Level Functions (total 2, both are exported)
FormatJSON formats the input json bytes with indentation.
If Indent fails, it returns the unchanged input as string.
ToJSON marshals the input into a json string.
If marshal fails, it falls back to fmt.Sprintf("%+v").
Package-Level Constants (only one, which is unexported)
The pages are generated with Golds v0.4.9. (GOOS=linux GOARCH=amd64)