search

package
v0.0.0-...-dd87daf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrBlocked = errors.New("google block")
View Source
var GoogleDomains = map[string]string{
	"us": "https://www.google.com/search?q=",
}
View Source
var RateLimit = rate.NewLimiter(rate.Inf, 0)

Functions

This section is empty.

Types

type Result

type Result struct {
	URL string `json:"url"`

	Title string `json:"title"`

	Description string `json:"description"`
}
func Search(ctx context.Context, searchTerm string, opts ...SearchOptions) ([]Result, error)

type SearchOptions

type SearchOptions struct {
	CountryCode string

	LanguageCode string

	Limit int

	Start int

	ProxyAddr string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL