package pretty
Import Path
google.golang.org/grpc/internal/pretty (on go.dev)
Dependency Relation
imports 5 packages, and imported by 4 packages
Involved Source Files
Package pretty defines helper functions to pretty-print structs for logging.
Package-Level Functions (total 2)
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").
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |