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

Method notify

chapter5/listing56/listing56.go:22–26  ·  view source on GitHub ↗

notify implements a method that can be called via a value of type user.

()

Source from the content-addressed store, hash-verified

20// notify implements a method that can be called via
21// a value of type user.
22func (u *user) notify() {
23 fmt.Printf("Sending user email to %s<%s>\n",
24 u.name,
25 u.email)
26}
27
28// admin represents an admin user with privileges.
29type admin struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected