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

7 lines
123 B
Go
Raw Permalink Normal View History

2013-04-10 16:57:12 -07:00
type peelfirst string
func (f peelfirst) eat() {
// peel code goes here
fmt.Println("mm, that", f, "was good!")
}