2019-06-17 09:48:05 +00:00
|
|
|
package file
|
|
|
|
|
|
|
|
type bar string
|
|
|
|
|
|
|
|
type Yo struct {
|
|
|
|
Foo string
|
|
|
|
Fii string
|
|
|
|
Fuu string
|
2020-06-17 14:48:04 +00:00
|
|
|
Yi *Yi `file:"allowEmpty"`
|
2019-06-17 09:48:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (y *Yo) SetDefaults() {
|
|
|
|
y.Foo = "foo"
|
|
|
|
y.Fii = "fii"
|
|
|
|
}
|
|
|
|
|
|
|
|
type Yi struct {
|
|
|
|
Foo string
|
|
|
|
Fii string
|
|
|
|
Fuu string
|
|
|
|
}
|
|
|
|
|
|
|
|
func (y *Yi) SetDefaults() {
|
|
|
|
y.Foo = "foo"
|
|
|
|
y.Fii = "fii"
|
|
|
|
}
|
|
|
|
|
|
|
|
type Yu struct {
|
|
|
|
Yi
|
|
|
|
}
|
|
|
|
|
|
|
|
type Ye struct {
|
|
|
|
*Yi
|
|
|
|
}
|