moq/example/example.go
2016-10-14 10:57:57 +01:00

18 lines
335 B
Go

package example
import "context"
//go:generate moq -out mockpersonstore_test.go . PersonStore
type Person struct {
ID string
Name string
Company string
Website string
}
type PersonStore interface {
Get(ctx context.Context, id string) (*Person, error)
Create(ctx context.Context, person *Person, confirm bool) error
}