mirror of
https://github.com/traefik/yaegi.git
synced 2026-06-01 18:37:56 +00:00
* gi: rename gi_c into _gi_c * gi: rename test into _test * gi: fix README syntax
21 lines
179 B
Go
21 lines
179 B
Go
package main
|
|
|
|
type T struct {
|
|
f int
|
|
g int
|
|
h struct {
|
|
k int
|
|
}
|
|
}
|
|
|
|
func f(i int) int { return i + 3 }
|
|
|
|
func main() {
|
|
a := T{}
|
|
a.h.k = f(4)
|
|
println(a.h.k)
|
|
}
|
|
|
|
// Output:
|
|
// 7
|