Registry / utility / alecthomas-repr

alecthomas-repr

JSON →
library0.5.2gogounverified

Attempts to represent Go values in a copy-pasteable source code form.

go get github.com/alecthomas/repr
INSTALL
IMPORT
SIG · ALECTHOMAS-REPR
A
alecthomas-repr
utilitygov0.5.2
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.

repr
github.com/alecthomas/repr

Prints a Go value as a valid Go expression.

package main import ( "fmt" "github.com/alecthomas/repr" ) func main() { type Foo struct{ Bar string } fmt.Println(repr.String(Foo{Bar: "hello"})) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
35 hits · last 30 days
node
32
OpenAI (training)
1
Resources
alecthomas-repr — go get alecthomas-repr · libregistry