cmd/root.go
func dumpJSON(v interface{}) string {
	buf := bytes.NewBuffer(nil)
	enc := json.NewEncoder(buf)
	enc.SetIndent("", "  ")
	if err := enc.Encode(v); err != nil {
		return err.Error()
	}
	return string(buf.Bytes())
}
func dumpJSON(v interface{}) string {
	buf := bytes.NewBuffer(nil)
	enc := json.NewEncoder(buf)
	enc.SetIndent("", "  ")
	if err := enc.Encode(v); err != nil {
		return err.Error()
	}
	return string(buf.Bytes())
}
func dumpJSON ( v interface { } ) string { buf := bytes . NewBuffer ( nil ) enc := json . NewEncoder ( buf ) enc . SetIndent ( " " , " " ) if err := enc . Encode ( v ) ; err != nil { return err . Error ( ) } return string ( buf . Bytes ( ) ) }
// For debugging
For debugging