mirror of
https://github.com/celogeek/piwigo-cli.git
synced 2025-05-25 18:22:37 +02:00
15 lines
197 B
Go
15 lines
197 B
Go
package piwigo
|
|
|
|
import (
|
|
"encoding/json"
|
|
"fmt"
|
|
)
|
|
|
|
func DumpResponse(v interface{}) (err error) {
|
|
b, err := json.MarshalIndent(v, "", " ")
|
|
if err == nil {
|
|
fmt.Println(string(b))
|
|
}
|
|
return
|
|
}
|