Why it matters
Go needs a struct for every JSON shape, and tags, initialisms and number types are tedious to get right by hand.
Paste a response and get a package you can drop in.
How to use it
- Type or paste your input; the example shows the format.
- Press Generate Go. Results also update as you type.
- Read the summary line, then the table, notes or output below it.
- Copy or download what you need. Nothing leaves this page.
FAQ
Why float64 for some numbers?
Numbers with decimals become float64; whole numbers become int64.
What about null values?
They become pointers or interface{}, since the sample can't show the type.
Is my input uploaded?
No. The tool runs in your browser and nothing you type, paste or open is sent anywhere.
Can I rely on the result?
It follows the public specification or formula named on this page and says where it simplifies. Check anything critical against the official tool or documentation before you ship it.