mirror of
https://github.com/celogeek/piwigo-cli.git
synced 2025-05-24 17:52:36 +02:00
fix dump doc
This commit is contained in:
parent
b17aaf4f1d
commit
45bfc16e7c
@ -1,7 +1,7 @@
|
||||
/*
|
||||
Debug tools
|
||||
|
||||
debug.Dump(myStruct)
|
||||
fmt.Println(debug.Dump(myStruct))
|
||||
*/
|
||||
package debug
|
||||
|
||||
@ -10,7 +10,7 @@ import (
|
||||
)
|
||||
|
||||
/*
|
||||
Dump an interface to the stdout
|
||||
Dump an interface into a json string format
|
||||
*/
|
||||
func Dump(v interface{}) string {
|
||||
result, err := json.MarshalIndent(v, "", " ")
|
||||
|
Loading…
x
Reference in New Issue
Block a user