mirror of
https://github.com/traefik/yaegi.git
synced 2026-06-01 18:37:56 +00:00
19 lines
152 B
Go
19 lines
152 B
Go
package main
|
|
|
|
type Opt struct {
|
|
b bool
|
|
}
|
|
|
|
type T struct {
|
|
i int
|
|
opt Opt
|
|
}
|
|
|
|
func main() {
|
|
a := T{}
|
|
println(a.i, a.opt.b)
|
|
}
|
|
|
|
// Output:
|
|
// 0 false
|