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
17 lines
125 B
Go
17 lines
125 B
Go
package main
|
|
|
|
type T struct {
|
|
f int
|
|
}
|
|
|
|
func main() {
|
|
a := T{}
|
|
println(a.f)
|
|
a.f = 8
|
|
println(a.f)
|
|
}
|
|
|
|
// Output:
|
|
// 0
|
|
// 8
|