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/020Interfaces.go:20–22 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
18
}
19
20
func
(r rect) area() float64 {
21
return
r.width * r.height
22
}
23
func
(r rect) perim() float64 {
24
return
2*r.width + 2*r.height
25
}
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected