Deep pretty printer for Go data structures to aid in debugging
spew implements a deep pretty printer for Go data structures to aid in debugging.
A quick overview of the additional features spew provides over the built-in printing facilities for Go data types are as follows:
Pointers are dereferenced and followed.
Circular data structures are detected and handled properly.
Custom Stringer/error interfaces are optionally invoked, including on unexported types.
Custom types which only implement the Stringer/error interfaces via a pointer receiver are optionally invoked when passing non-pointer variables.
Byte arrays and slices are dumped like the hexdump -C command which includes offsets, byte values in hex, and ASCII output (only when using Dump style).
Look for formatting issues in the source
|line 1885 is way too long (129 characters)|