# This is the 1st commit message: first commit # This is the commit message #2: fixed cache
13 lines
180 B
Go
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)
|
|
}
|