mirror of
https://github.com/hanzoai/ingress-parser.git
synced 2026-10-30 18:33:22 +00:00
Modules declare go 1.27.1 and the build images follow. go fix applied the modernizers; omitzero is not applied, since it changes what the JSON says. Co-Authored-By: Claude Opus 5 <[email protected]>
39 lines
393 B
Go
39 lines
393 B
Go
package file
|
|
|
|
type bar string
|
|
|
|
type Yo struct {
|
|
Foo string
|
|
Fii string
|
|
Fuu string
|
|
Yi *Yi `file:"allowEmpty"`
|
|
}
|
|
|
|
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
|
|
}
|
|
|
|
type FooRaw struct {
|
|
TestData map[string]any
|
|
}
|