added go:generate example

This commit is contained in:
Mat Ryer
2016-09-21 22:05:31 +01:00
parent 18033310b9
commit 165a51d1d7
2 changed files with 20 additions and 0 deletions

View File

@@ -1,5 +1,8 @@
package generate
// In a terminal, run `go generate` in this directory to have
// it generates the generated.go file.
//go:generate moq -out generated.go . MyInterface
type MyInterface interface {