piwigo-cli/helper.go
2021-12-14 13:44:07 +01:00

15 lines
195 B
Go

package main
import (
"encoding/json"
"fmt"
)
func dumpResponse(v interface{}) (err error) {
b, err := json.MarshalIndent(v, "", " ")
if err == nil {
fmt.Println(string(b))
}
return
}