moq/example/example.go
2016-08-29 13:09:34 +01:00

16 lines
273 B
Go

package example
import "context"
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
}