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

Struct user

chapter5/listing56/listing56.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 a method that can be called via
21// a value of type user.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected