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.