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

Method notify

chapter5/listing50/listing50.go:17–21  ·  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

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected