Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GoogleDomains = map[string]string{}/* 198 elements not displayed */
GoogleDomains represents localized Google homepages. The 2 letter country code is based on ISO 3166-1 alpha-2.
Functions ¶
This section is empty.
Types ¶
type Result ¶
type Result struct { // Rank is the order number of the search result. Rank int `json:"rank"` // URL of result. URL string `json:"url"` // Title of result. Title string `json:"title"` // Description of the result. Description string `json:"description"` }
Result represents a single result from Google Search.
type SearchOptions ¶
type SearchOptions struct { // CountryCode sets the ISO 3166-1 alpha-2 code of the localized Google Search homepage to use. // The default is "us", which will return results from https://www.google.com. CountryCode string // LanguageCode sets the language code. // Default: en LanguageCode string // Limit sets how many results to fetch (at maximum). Limit int // Start sets from what rank the new result set should return. Start int // UserAgent sets the UserAgent of the http request. // Default: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36" UserAgent string }
SearchOptions modifies how the Search function behaves.
Click to show internal directories.
Click to hide internal directories.