Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
13
func
(r rect) perim() int {
14
return
2*r.width + 2*r.height
15
}
16
17
func
main() {
18
r := rect{width: 10, height: 5}
Callers
1
main
Function · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected