moq/generate/generate.go

14 lines
277 B
Go
Raw Normal View History

2016-09-21 23:02:49 +02:00
package generate
2016-09-21 23:05:31 +02:00
// In a terminal, run `go generate` in this directory to have
// it generates the generated.go file.
2016-09-21 23:02:49 +02:00
//go:generate moq -out generated.go . MyInterface
2016-11-06 13:37:55 +01:00
// MyInterface is a test interface.
2016-09-21 23:02:49 +02:00
type MyInterface interface {
One() bool
Two() int
Three() string
}