improved report card
This commit is contained in:
@@ -4,6 +4,7 @@ import "context"
|
||||
|
||||
//go:generate moq -out mockpersonstore_test.go . PersonStore
|
||||
|
||||
// Person represents a real person.
|
||||
type Person struct {
|
||||
ID string
|
||||
Name string
|
||||
@@ -11,6 +12,7 @@ type Person struct {
|
||||
Website string
|
||||
}
|
||||
|
||||
// PersonStore provides access to Person objects.
|
||||
type PersonStore interface {
|
||||
Get(ctx context.Context, id string) (*Person, error)
|
||||
Create(ctx context.Context, person *Person, confirm bool) error
|
||||
|
Reference in New Issue
Block a user