diff --git a/main.go b/main.go index ead2ab1..2726c4e 100644 --- a/main.go +++ b/main.go @@ -27,3 +27,10 @@ func Print(body interface{}) { // Print out string to stdout fmt.Println(string(s)) } + +// PrintArray will beautify the output of an interface array (bodyArray) +func PrintArray(bodyArray []interface{}) { + for i := range bodyArray { + Print(bodyArray[i]) + } +}