kr/pretty
Pretty printing for Go values observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases no_readme
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5710
- days_rel: n/a
- days_push: 768
- n_releases_24m: 0
Adoption not part of the score
1410 stars · 160 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A small Go library that provides pretty-printing for Go values, including a fmt-compatible Formatter and convenience wrappers around fmt and log. It also offers Diff functions that produce human-readable descriptions of differences between two values.
Use cases
- pretty-print Go structs for debugging
- print long nested data structures without line wrapping
- diff two Go values in tests
- format values with fmt.Printf using %# v
- log complex values readably
When to choose
- you need readable multi-line output of nested Go values during debugging
- you want simple value diffs in Go tests
- you want a tiny, widely imported, MIT-licensed dependency
When to avoid
- you need JSON or structured machine-readable output
- you need actively developed features or modern formatting alternatives
- you only need simple fmt printing of flat values
Facets
library · maturity maintenance
developer-tools logging testing developer-tools testing go cross-platform pretty-printing debugging diff fmt-formatter command-line
4 sources
- homepage: http://godoc.org/github.com/kr/pretty · fetched 2026-08-29 · 1977a6499a38
- site_page: https://pkg.go.dev/about · fetched 2026-08-29 · 757852027879
- site_page: https://pkg.go.dev/github.com/kr/pretty · fetched 2026-08-29 · 0146118957d8
- site_page: https://go.dev/project · fetched 2026-08-29 · d5ca00bb378b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| kr/pretty | main | 32 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem