Все инструменты
JSON → Go Struct
Конвертируйте JSON в определения Go-структур автоматически
JSON
Go Struct
type Root struct {
Id int `json:"id"`
Name string `json:"name"`
Email string `json:"email"`
IsActive bool `json:"is_active"`
Score float64 `json:"score"`
Tags []string `json:"tags"`
Address Address `json:"address"`
}
type Address struct {
City string `json:"city"`
Zip string `json:"zip"`
}