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
14 lines
110 B
Go
14 lines
110 B
Go
package main
|
|
|
|
type Foo struct {
|
|
val int
|
|
}
|
|
|
|
func main() {
|
|
var a = &Foo{3}
|
|
println(a.val)
|
|
}
|
|
|
|
// Output:
|
|
// 3
|