xdumpgo is a Go library (and command-line tool) that allows developers to dump complex data structures into various formats (often XML or extended data formats). Unlike standard JSON marshaling which fails on circular references or unexported fields, xdumpgo uses reflection to provide a granular view of your data in memory.
package main
type Config struct { Settings map[string]interface{} Secret string // unexported field }
xdumpgo is a Go library (and command-line tool) that allows developers to dump complex data structures into various formats (often XML or extended data formats). Unlike standard JSON marshaling which fails on circular references or unexported fields, xdumpgo uses reflection to provide a granular view of your data in memory.
package main
type Config struct { Settings map[string]interface{} Secret string // unexported field } xdumpgo tutorial