mirror of
https://github.com/traefik/yaegi.git
synced 2026-06-01 18:37:56 +00:00
18 lines
143 B
Go
18 lines
143 B
Go
package main
|
|
|
|
type T struct {
|
|
v bool
|
|
}
|
|
|
|
func main() {
|
|
a := &T{}
|
|
if a.v {
|
|
println("ok")
|
|
} else {
|
|
println("nok")
|
|
}
|
|
}
|
|
|
|
// Output:
|
|
// nok
|