JSON zu Go-Struct
JSON zu Go-Struct
Läuft in Ihrem Browser · Kein Hochladen
Das Werkzeug selbst und die Anleitung auf dieser Seite sind vorerst auf Englisch. Es funktioniert genauso: Alles läuft in Ihrem Browser.
Generate Go
Ihr Browser ist für dieses Werkzeug zu alt. Bitte aktualisieren Sie ihn oder nutzen Sie eine aktuelle Version von Chrome, Edge, Firefox oder Safari.
- Nichts verlässt Ihr Gerät
- Keine Größenlimits durch einen Server
- Keine Anmeldung, kein Wasserzeichen
- Kostenlos
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.
Häufige Fragen
Is my JSON uploaded?
No. Everything happens in your browser, and the page is blocked from uploading anything.