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
|