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

Struct user

chapter5/listing11/listing11.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 with a value receiver.
16func (u user) notify() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected