RosettaCodeData/Task/Constrained-genericity/Go/constrained-genericity-3.go

7 lines
123 B
Go

type peelfirst string
func (f peelfirst) eat() {
// peel code goes here
fmt.Println("mm, that", f, "was good!")
}