added go generate example

This commit is contained in:
Mat Ryer
2016-09-21 22:02:49 +01:00
parent 5d872a540b
commit 18033310b9
2 changed files with 23 additions and 6 deletions

9
generate/generate.go Normal file
View File

@@ -0,0 +1,9 @@
package generate
//go:generate moq -out generated.go . MyInterface
type MyInterface interface {
One() bool
Two() int
Three() string
}