Releases: goforj/godump
v1.6.0
What's Changed
- fix: cleanup runtime caller usage by @ccoVeille in #36
- feat: CI tests against 1.23, stable and oldstable by @Andrei-hub11 in #35
- chore: remove enableColor and colorize local variables by @ccoVeille in #38
- feat: support up to Go 1.18 by @ccoVeille in #43
New Contributors
- @Andrei-hub11 made their first contribution in #35
Full Changelog: v1.5.0...v1.6.0
v1.5.0
What's Changed
- fix: missing opening brace with structs by @ccoVeille in #26
- fix: use div instead of body for HTML rendering by @ccoVeille in #27
- chore: remove useless callerLocation by @ccoVeille in #28
- chore: remove unused secret struct by @ccoVeille in #29
- chore: cleanup duplicated tests by @ccoVeille in #30
- feat: support customizing stack frames to skip when printing the header by @almas-x in #31
New Contributors
- @ccoVeille made their first contribution in #26
Full Changelog: v1.4.0...v1.5.0
v1.4.0
v1.3.0
✨ Features
-
User Customization Support (#20)
You can now customize the dump output to better fit your needs. Thanks @YohannBethoule, @ccoVeille, and @Akkadius -
JSON Output Helper (#18) You can now output dumps as JSON using the new DumpJSON function — great for structured logging or integrations. Thanks @tacheraSasi, @ccoVeille, and @Akkadius
🐛 Fixes
- No More Duplicate Fields (#22)
Resolved an issue with duplicate fields in embedded structs. Also fixes #10. Thanks @almas-x! - HTML Tag Correction (#19) Fixed a minor bug with HTML output. Thanks @radahn42
🧪 Tests
- New Test for Nil Pointer Edge Case
Added a test case (TestIndirectionNilPointer) to cover a tricky edge case from #10.
📘 Docs & README
- Added an awesome-go badge 🏅 ([commit](1c50abf))
- Refined examples: simplified the main README and split out the builder examples for clarity.
🙌 Special Thanks
Huge shout-out to @ccoVeille for all the review support and contributions!
v1.1.0
v1.0.6
Changes
- Added codecov badge to readme
- 100% test coverage
- fix: prevent panic when dumping structs with promoted fields Addressed #6
- fix: better custom types handling Addressed #2
v1.0.5
- Support for unexported
fmt.Stringervalues viaforceExported()andasStringer()logic - Automatic pointer wrapping in
writeDump()to ensure fields are addressable when passed by value - Cleaner handling of zero and nil values, with
<invalid>safely rendered for uninitialized fields - Redundant
time.Timespecial-case removed, now universally handled by generalizedStringerlogic - No more panic fallbacks - all access is guarded, safe, and cleanly formatted
- Invoke .String() if exists - On custom types
- Test Coverage - Hitting around 94%
v1.0.0 — Initial Stable Release
🎉 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.0Thanks to everyone who helped test and refine the output. Feedback and PRs welcome 🙌
