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

Method perim

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

Source from the content-addressed store, hash-verified

11}
12
13func (r rect) perim() int {
14 return 2*r.width + 2*r.height
15}
16
17func main() {
18 r := rect{width: 10, height: 5}

Callers 1

mainFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected