16 lines
266 B
Go
16 lines
266 B
Go
|
package example
|
||
|
|
||
|
import "context"
|
||
|
|
||
|
type Person struct {
|
||
|
ID string
|
||
|
Name string
|
||
|
Company string
|
||
|
Website string
|
||
|
}
|
||
|
|
||
|
type PersonStore interface {
|
||
|
Get(context.Context, string) (*Person, error)
|
||
|
Create(ctx context.Context, person *Person, confirm bool) error
|
||
|
}
|