package shapes type Rectangle struct { Width float64 Height float64 } func Perimeter(rec Rectangle) float64 { return 2 * (rec.Width + rec.Height) }