MCPcopy Create free account
hub / github.com/mmcgrana/gobyexample / perim

Method perim

examples/interfaces/interfaces.go:32–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30 return r.width * r.height
31}
32func (r rect) perim() float64 {
33 return 2*r.width + 2*r.height
34}
35
36// The implementation for `circle`s.
37func (c circle) area() float64 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected