18 lines
333 B
Go
18 lines
333 B
Go
package example
|
|
|
|
import "context"
|
|
|
|
//go:generate moq PersonStore -out mockpersonstore_test.go
|
|
|
|
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
|
|
}
|