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

Struct user

chapter5/listing50/listing50.go:10–13  ·  view source on GitHub ↗

user defines a user in the program.

Source from the content-addressed store, hash-verified

8
9// user defines a user in the program.
10type user struct {
11 name string
12 email string
13}
14
15// notify implements a method that can be called via
16// a value of type user.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected