MCPcopy Create free account
hub / github.com/goinaction/code / notify

Method notify

chapter5/listing36/listing36.go:21–25  ·  view source on GitHub ↗

notify implements a method with a pointer receiver.

()

Source from the content-addressed store, hash-verified

19
20// notify implements a method with a pointer receiver.
21func (u *user) notify() {
22 fmt.Printf("Sending user email to %s<%s>\n",
23 u.name,
24 u.email)
25}
26
27// main is the entry point for the application.
28func main() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected