JSON إلى بنية Go
JSON إلى بنية Go
تعمل في متصفحك · بلا رفع
الأداة نفسها والتعليمات في هذه الصفحة باللغة الإنجليزية حاليًا. تعمل بالطريقة نفسها: كل شيء يجري في متصفحك.
Generate Go
متصفحك قديم جدًا لتشغيل هذه الأداة. حدِّثه، أو استخدم إصدارًا حديثًا من Chrome أو Edge أو Firefox أو Safari.
- لا شيء يغادر جهازك
- لا حدود للحجم يفرضها الخادم
- بلا تسجيل، بلا علامة مائية
- مجانية
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.
الأسئلة الشائعة
Is my JSON uploaded?
No. Everything happens in your browser, and the page is blocked from uploading anything.