13 lines
197 B
Go
13 lines
197 B
Go
package quotes
|
|
|
|
import "context"
|
|
|
|
type Quote struct {
|
|
Text string `json:"text"`
|
|
Author string `json:"author"`
|
|
}
|
|
|
|
type Service interface {
|
|
GetRandomQuote(ctx context.Context) (*Quote, error)
|
|
}
|