user defines a user in the program.
| 8 | |
| 9 | // user defines a user in the program. |
| 10 | type user struct { |
| 11 | name string |
| 12 | email string |
| 13 | } |
| 14 | |
| 15 | // notify implements a method with a value receiver. |
| 16 | func (u user) notify() { |
nothing calls this directly
no outgoing calls
no test coverage detected