To dump a variable, simply import the package and call the Dump function. This is most effective when inspecting "black box" objects where you aren't sure of the current state.
: Automatically follow pointer chains to show the actual value, not just a memory address.
xdumpgo hex -o file.bin
func (d *MyDecoder) Decode(chunk []byte) (interface{}, error) // Custom logic: convert to base64 or decryption, etc. return map[string]string"custom": string(chunk), nil