Our great sponsors
- SurveyJS - A Non-Cloud Alternative to Google Forms that has it all.
- Amplication - open-source Node.js backend code generator
- Appwrite - The open-source backend cloud platform
- Mergify - Updating dependencies is time-consuming.
- InfluxDB - Collect and Analyze Billions of Data Points in Real Time
Translates JSON into a Go type in your browser instantly (original)
But given we know ChatGPT can't accurately generate structs from even moderately complex json objects why bother doing all of that legwork of verifying and chiding chatgpt, when you can just drop it into a tool like https://mholt.github.io/json-to-go/ and get a correct struct in a fraction of the time?
Generate types and converters from JSON, Schema, and GraphQL
I usually use https://app.quicktype.io/ , they also have a VSCode plugin and then fieldaligment to make sure it's as compact as possible.
This is a sample project showcasing how to use oapi-codegen to generate an Echo server and then use the validator framework to validate the spec.
This package gives a decent overview in using said tools.
Thoughts on HTTP and JSON with Golang. And other Headaches.
3 projects | /r/golang | 5 Jul 2022
Complex JSON structures - specifically ECE
3 projects | /r/golang | 10 May 2022
JSON to Go Struct Converter
1 project | /r/golang | 8 Jul 2023
Need a pointer on how I can unmarshal this json
1 project | /r/golang | 24 May 2023
Ask HN: What are some Golang tools you can't live without?
2 projects | news.ycombinator.com | 23 May 2023