Skip to content

Instantly share code, notes, and snippets.

@inhies
Created August 14, 2017 06:32
Show Gist options
  • Select an option

  • Save inhies/4d1ba87f1ee6aa25d5708de1f5a3d9b8 to your computer and use it in GitHub Desktop.

Select an option

Save inhies/4d1ba87f1ee6aa25d5708de1f5a3d9b8 to your computer and use it in GitHub Desktop.

Revisions

  1. inhies created this gist Aug 14, 2017.
    4 changes: 4 additions & 0 deletions prettyprint.go
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    func PrettyPrint(v interface{}) {
    b, _ := json.MarshalIndent(v, "", " ")
    println(string(b))
    }