Our great sponsors
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
I had a look at Socker.IO as the API was more what I was after (has an event handler style API) but the Go implantation seems to be outdated (plus requires the Client to use their own API which I find clunky).
You go to https://mholt.github.io/json-to-go/. You paste your raw JSON. You get a type safe deserialization schema that works out of the box with the standard library. For every other language you have to install some tool to work with schemas and even then a lot of the time it has to be a JSON Schema which means first you have to convert the raw JSON into a schema since the API doesn’t provide it. Go is just easier and more robust.
Related posts
- JSON to Go Struct Converter
- Need a pointer on how I can unmarshal this json
- Ask HN: What are some Golang tools you can't live without?
- how to efficiently create structs to match the json response
- Is there a library or tool I can use to avoid manually setting json keys i.e. ‘json:”name”’ next to fields in structs?