A quick snippet to get some nicer debug of json and other mapped values.

//PrettyPrint print any interface
func PrettyPrint(data interface{}) (err error) {
      indentedData, err := json.MarshalIndent(data, "", "  ")
      if err == nil {
              fmt.Println(string(indentedData))
      }
      return
}