renamed function to Print

This commit is contained in:
Nils Stinnesbeck 2020-05-10 15:38:17 +02:00
parent 9ee0fcda8e
commit deefc6b24b
Signed by: nils
GPG Key ID: 86D4882C6C6CA48B

View File

@ -7,8 +7,8 @@ import (
"github.com/TylerBrock/colorjson"
)
// PrettyPrint will beautify the output of
func PrettyPrint(body interface{}) {
// Print will beautify the output of
func Print(body interface{}) {
b, err := json.Marshal(body)
var obj map[string]interface{}
//json.Unmarshal([]byte(body), &obj)