1
0
mirror of https://github.com/celogeek/piwigo-cli.git synced 2025-06-21 06:19:56 +02:00
2021-12-31 13:37:15 +01:00

15 lines
188 B
Go

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