SyntaxFix
Write A Post
Hire A Developer
Questions
When you have more complex structures, you might need to convert to JSON before printing:
// Convert structs to JSON. data, err := json.Marshal(myComplexStruct) fmt.Printf("%s\n", data)
Source: https://gist.github.com/tetsuok/4942960