mirror of
https://github.com/traefik/yaegi.git
synced 2026-06-01 18:37:56 +00:00
18 lines
243 B
Go
18 lines
243 B
Go
package main
|
|
|
|
func BlockSize() string { return "func" }
|
|
|
|
type Cipher struct{}
|
|
|
|
func (c *Cipher) BlockSize() string { return "method" }
|
|
|
|
func main() {
|
|
println(BlockSize())
|
|
s := Cipher{}
|
|
println(s.BlockSize())
|
|
}
|
|
|
|
// Output:
|
|
// func
|
|
// method
|