Registry / utility / gobs-pretty

gobs-pretty

JSON →
library0.0.0-20180724170744-09732c25a95bgogounverified

Package pretty provides functions to pretty-print Go data structures in a human-readable format.

go get github.com/gobs/pretty
INSTALL
IMPORT
SIG · GOBS-PRETTY
G
gobs-pretty
utilitygov0.0.0-20180724170744-09732c25a95b
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/gobs/pretty

Prints a map in a formatted, indented style.

package main import ( "fmt" "github.com/gobs/pretty" ) func main() { data := map[string]int{"a": 1, "b": 2} pretty.Print(data) fmt.Println(pretty.Sprint(data)) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20180724170744-09732c25a95blatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

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