Registry / utility / niemeyer-pretty

niemeyer-pretty

JSON →
library0.0.0-20200227124842-a10e7caefd8egogounverified

Package pretty provides pretty-printing for Go values, useful during debugging to avoid wrapping long output lines in the terminal.

go get github.com/niemeyer/pretty
INSTALL
IMPORT
SIG · NIEMEYER-PRETTY
N
niemeyer-pretty
utilitygov0.0.0-20200227124842-a10e7caefd8e
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

pretty
github.com/niemeyer/pretty

Pretty-prints a struct value.

package main import ( "fmt" "github.com/niemeyer/pretty" ) func main() { type Point struct{ X, Y int } p := Point{3, 4} fmt.Println(pretty.Sprint(p)) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20200227124842-a10e7caefd8elatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
niemeyer-pretty — go get niemeyer-pretty · libregistry