snow/aid/print.go
2023-10-31 23:19:52 +00:00

14 lines
190 B
Go

package aid
import (
"encoding/json"
"fmt"
)
func PrintJSON(v interface{}) {
json1, err := json.MarshalIndent(v, "", " ")
if err != nil {
panic(err)
}
fmt.Println(string(json1))
}