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