A zero-dependency, Laravel-inspired pretty-printer and debug dumper for Go structs with colorized terminal and HTML output.
godump is a debugging library for Go that provides pretty-printed, colorized output of complex data structures like structs, maps, and slices. It solves the problem of inspecting nested or large Go variables during development by offering clear, formatted displays similar to tools in PHP ecosystems like Laravel's dump().
Go developers who need to debug complex data structures, especially those transitioning from PHP/Laravel or seeking more visual debugging tools than Go's standard fmt package provides.
Developers choose godump for its zero-dependency design, rich output formats (terminal, HTML, JSON), and unique features like visual diffs and cyclic reference detection, which are not available in alternatives like go-spew or pp.
A minimal, developer-friendly pretty-printer and debug dumper for Go structs, inspired by Laravel’s dump() and Symfony’s VarDumper.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Supports terminal, HTML, and JSON output, as shown in the feature comparison and examples, making it versatile for different debugging contexts like web apps or APIs.
Automatically detects and handles recursive structures to prevent infinite loops, a key feature highlighted in the README for safe debugging of complex data.
Emphasized in the project philosophy and badges, ensuring easy integration without external library conflicts or bloat.
Builder-style API allows fine-grained control over output depth, truncation, and field filtering, with detailed examples in the extended usage section.
Relies on Go's reflection package, which can introduce significant slowdowns when dumping large or deeply nested data structures compared to lighter alternatives.
The extensive features and builder API add unnecessary complexity for simple debugging tasks, where a more minimal tool might be preferable.