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

Method area

GolangBasics/GoByExample/019Methods.go:9–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7}
8
9func (r *rect) area() int {
10 return r.width * r.height
11}
12
13func (r rect) perim() int {
14 return 2*r.width + 2*r.height

Callers 1

mainFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected