Registry / utility / davecgh-go-spew

davecgh-go-spew

JSON →
library1.1.1gogounverified

Package spew implements a deep pretty printer for Go data structures to aid in debugging.

go get github.com/davecgh/go-spew
INSTALL
IMPORT
SIG · DAVECGH-GO-SPEW
D
davecgh-go-spew
utilitygov1.1.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.

spew
✓ github.com/davecgh/go-spew/spew

Dump a struct to the console

package main import "github.com/davecgh/go-spew/spew" func main() { type Person struct { Name string; Age int } p := Person{Name: "Alice", Age: 30} spew.Dump(p) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources