go define interface code example Example: golang interface type Shape interface { area() float64 perimeter() float64 }