diff --git a/README.md b/README.md index af44eba..0c83bc7 100644 --- a/README.md +++ b/README.md @@ -54,4 +54,10 @@ func CompleteSignUp(to string, sender EmailSender) { } ``` -The mocked structure implements the interface, where each method calls the associated function field. \ No newline at end of file +The mocked structure implements the interface, where each method calls the associated function field. + +## Tips + +* Keep mocked logic inside the test that is using it +* Only mock the fields you need - it will panic if a nil function gets called +* Use `go:generate` to invoke the `moq` command