Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/derekbanas/Go-Tutorial
/ Attack
Method
Attack
hellogo.go:198–200 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
196
type
Cat string
197
198
func
(c Cat) Attack() {
199
pl(
"Cat Attacks its Prey"
)
200
}
201
202
// Return the cats name with a type conversion
203
func
(c Cat) Name() string {
Callers
1
main
Function · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected