Registry / utility / kr-pretty

kr-pretty

JSON →
library0.3.1gogounverified

Provides pretty-printing for Go values.

go get github.com/kr/pretty
INSTALL
IMPORT
SIG · KR-PRETTY
K
kr-pretty
utilitygov0.3.1
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/kr/pretty

Prints a Go value with pretty formatting.

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

No known issues recorded.

Upgrade
Version history
0.3.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

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