added go generate example
This commit is contained in:
9
generate/generate.go
Normal file
9
generate/generate.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package generate
|
||||
|
||||
//go:generate moq -out generated.go . MyInterface
|
||||
|
||||
type MyInterface interface {
|
||||
One() bool
|
||||
Two() int
|
||||
Three() string
|
||||
}
|
Reference in New Issue
Block a user