diff --git a/json.go b/json.go new file mode 100644 index 0000000..2a1f013 --- /dev/null +++ b/json.go @@ -0,0 +1,11 @@ +package spew + +import ( + "encoding/json" + "fmt" +) + +func Json(a any) { + d, _ := json.MarshalIndent(a, "", "\t") + fmt.Println(string(d)) +}