MCPcopy
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

15type list []*game
16
17func (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

PrintlnMethod · 0.80
printMethod · 0.65

Tested by

no test coverage detected