FL
Size: a a a
FL
А
x
А
FL
FL
type Foo struct {
Bar Bar `json:""` - Я могу как-то задать "деструктуризацию"? Слияние bar в foo
}
type Bar struct {
Id int `json:"id"`
Name string `json:"name"`
}
x
type Foo struct {
Bar Bar `json:""` - Я могу как-то задать "деструктуризацию"? Слияние bar в foo
}
type Bar struct {
Id int `json:"id"`
Name string `json:"name"`
}
json.Marshaler/json.Unmarshaler
.А
type Foo struct {
Bar Bar `json:""` - Я могу как-то задать "деструктуризацию"? Слияние bar в foo
}
type Bar struct {
Id int `json:"id"`
Name string `json:"name"`
}
FL
FL
Bar
А
FL
x
x
V
V
x
x
V