MCPcopy
hub / github.com/inancgumus/learngo / toy

Struct toy

interfaces/06-empty-interface/toy.go:13–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11import "fmt"
12
13type toy struct {
14 title string
15 price money
16}
17
18func (t *toy) print() {
19 fmt.Printf("%-15s: %s\n", t.title, t.price.string())

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected