So I decided to give Go another chance but got stuck. Most Go struct examples in documentation are very simple and I found the following JSON object notation that I don't know how to represent with Go structs:
{
id: 1,
version: "1.0",
method: "someString",
params: [
{
clientid: "string",
nickname: "string",
level: "string"
},
[{
value: "string",
"function": "string"
}]
]
}
How would you, more experienced gophers, represent that somewhat strange data in Go? And how to initialize the nested elements of the resulting struct?