JSON in struct Go
JSON in struct Go
Funziona nel browser · Nessun caricamento
Lo strumento e le istruzioni di questa pagina sono per ora in inglese. Funziona allo stesso modo: tutto avviene nel browser.
Generate Go
Il tuo browser è troppo vecchio per questo strumento. Aggiornalo o usa una versione recente di Chrome, Edge, Firefox o Safari.
- Nulla lascia il tuo dispositivo
- Nessun limite di dimensione imposto da un server
- Nessuna registrazione, nessuna filigrana
- Gratis
How to convert JSON to Go
- Paste your JSON, or try the example.
- Choose omitempty and pointers for nullable fields.
- Copy or download the Go code.
What you get
- A struct for every object, with fields lined up as gofmt does.
- Go names with common initialisms (ID, URL, HTTP, JSON) and json tags with the original keys.
- int64 for whole numbers and float64 for decimals.
- omitempty for fields missing from some items, and *T for fields that can be null.
Domande frequenti
Is my JSON uploaded?
No. Everything happens in your browser, and the page is blocked from uploading anything.