Hacker News new | ask | show | jobs
by oceanplexian 1137 days ago
Extremely good at turning JSON into a Go struct. Just in general, as someone who has spent years writing Python, it’s helped me fill in gaps with Go. This is a killer feature for GPT.. if you’re proficient in one language it can help you rapidly get up to speed in another.
3 comments

Surprisingly GoLand has this build in. Just copy Json into a .go file and it'll prompt you if it should convert it to a struct.
... and there is no need for AI.

You can also check out the awesome work Tom did: https://github.com/twpayne/go-jsonstruct

No a general purpose tool just invalidated all that work and more.
Check out https://github.com/ChimeraCoder/gojson as well, been my go to for this.
unsurprisingly, the thing built for translating languages is really good at translating languages