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

Method perim

examples/interfaces/interfaces.go:40–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38 return math.Pi * c.radius * c.radius
39}
40func (c circle) perim() float64 {
41 return 2 * math.Pi * c.radius
42}
43
44// If a variable has an interface type, then we can call
45// methods that are in the named interface. Here's a

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected