gobyexample/35-interfaces.go
2012-09-20 20:49:36 -07:00

7 lines
71 B
Go

package main
import "fmt"
type Shape interface {
area() float64
}