renamed function to Print
This commit is contained in:
parent
9ee0fcda8e
commit
deefc6b24b
4
main.go
4
main.go
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user