MCPcopy Create free account
hub / github.com/Go-Learning-Land/Go-Learning-Archive / perim

Method perim

GolangBasics/GoByExample/020Interfaces.go:23–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21 return r.width * r.height
22}
23func (r rect) perim() float64 {
24 return 2*r.width + 2*r.height
25}
26
27func (c circle) area() float64 {
28 return math.Pi * c.radius * c.radius

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected