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

Struct user

chapter5/listing48/listing48.go:15–18  ·  view source on GitHub ↗

user defines a user in the program.

Source from the content-addressed store, hash-verified

13
14// user defines a user in the program.
15type user struct {
16 name string
17 email string
18}
19
20// notify implements the notifier interface with a pointer receiver.
21func (u *user) notify() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected