Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/inancgumus/learngo
/ print
Method
print
interfaces/03-nonstructs/list.go:17–27 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
15
type
list []*game
16
17
func
(l list) print() {
18
// `list` acts like a `[]game`
19
if
len(l) == 0 {
20
fmt.Println(
"Sorry. We're waiting for delivery 🚚."
)
21
return
22
}
23
24
for
_, it :=
range
l {
25
it.print()
26
}
27
}
Callers
nothing calls this directly
Calls
2
Println
Method · 0.80
print
Method · 0.65
Tested by
no test coverage detected