github goforj/godump v1.0.0
v1.0.0 — Initial Stable Release

latest releases: v1.9.1, v1.9.0, v1.8.0...
10 months ago

🎉 First stable release of godump — a developer-friendly pretty-printer for Go structs and values.

Inspired by Symfony’s VarDumper (Laravel's dump/dd), godump brings expressive debug output to Go projects, with no dependencies and intuitive formatting.

✨ Features

  • 🧠 Field visibility markers: + (exported), - (unexported via reflection)
  • 📍 Prints the file and line number where the dump was invoked
  • 🔄 Cycle-safe reference detection (↩︎ &1)
  • 🧪 Supports structs, maps, slices, arrays, pointers, time.Time, and functions
  • 🎨 Colorized terminal output (ANSI-safe)
  • 🌐 DumpHTML() for HTML-rendered debug output in web UIs
  • 🪄 Control character escaping for strings (\n, \t, etc.)
  • 📦 Lightweight: zero dependencies, ~350 LOC core

📦 Install

go get github.com/goforj/godump@v1.0.0

Thanks to everyone who helped test and refine the output. Feedback and PRs welcome 🙌

Don't miss a new godump release

NewReleases is sending notifications on new releases.