github.com/traefik/yaegi@v0.15.1/_test/method11.go (about) 1 package main 2 3 func BlockSize() string { return "func" } 4 5 type Cipher struct{} 6 7 func (c *Cipher) BlockSize() string { return "method" } 8 9 func main() { 10 println(BlockSize()) 11 s := Cipher{} 12 println(s.BlockSize()) 13 } 14 15 // Output: 16 // func 17 // method