So, I decided to give a chance, but got stuck. Most examples of Go structures in the documentation are very simple, and I found the following JSON object designation, which I donβt know how to represent using Go structures:
{ id: 1, version: "1.0", method: "someString", params: [ { clientid: "string", nickname: "string", level: "string" }, [{ value: "string", "function": "string" }] ] }
How would you, more experienced gophers, present some strange data in Go? And how to initialize the nested elements of the resulting structure?
source share