ghost-listmonk-connector/utils/pretty_print.go
troneras 1fd7dad8e4 # This is a combination of 2 commits.
# This is the 1st commit message:

first commit

# This is the commit message #2:

fixed cache
2024-08-21 02:08:01 +02:00

13 lines
180 B
Go

package utils
import (
"encoding/json"
)
func PrettyPrint(v interface{}) string {
b, err := json.MarshalIndent(v, "", " ")
if err != nil {
return ""
}
return string(b)
}