initial commit
This commit is contained in:
13
pkg/search/search.go
Normal file
13
pkg/search/search.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package search
|
||||
|
||||
import "context"
|
||||
|
||||
type Result struct {
|
||||
Title string
|
||||
URL string
|
||||
Description string
|
||||
}
|
||||
|
||||
type Search interface {
|
||||
Search(ctx context.Context, query string) ([]Result, error)
|
||||
}
|
Reference in New Issue
Block a user