fix dump doc

This commit is contained in:
Celogeek 2022-01-05 09:39:08 +01:00
parent b17aaf4f1d
commit 45bfc16e7c
Signed by: celogeek
GPG Key ID: E6B7BDCFC446233A

View File

@ -1,7 +1,7 @@
/* /*
Debug tools Debug tools
debug.Dump(myStruct) fmt.Println(debug.Dump(myStruct))
*/ */
package debug 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 { func Dump(v interface{}) string {
result, err := json.MarshalIndent(v, "", " ") result, err := json.MarshalIndent(v, "", " ")