Documentation lessons learned

This commit is contained in:
luke-hagar-sp
2023-03-06 13:22:41 -06:00
parent 583f7cca5a
commit 4c32b79f82
18 changed files with 116 additions and 57 deletions

View File

@@ -1 +1,14 @@
package util
import (
"encoding/json"
"fmt"
)
func PrettyPrint(v interface{}) {
b, err := json.MarshalIndent(v, "", " ")
if err != nil {
fmt.Println("error:", err)
}
fmt.Print(string(b))
}