package
Version:
v1.0.1
Opens a new window with list of versions in this module.
Published: Dec 18, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package search implements Google Custom Search.
type Context struct {
Title string
}
type Item struct {
Kind, Title, HtmlTitle string
Link, DisplayLink string
Snippet, HtmlSnippet, CacheId string
FormattedUrl, HtmlFormattedUrl string
}
type Page struct {
Title, TotalResults, SearchTerms string
Count, StartIndex int
InputEncoding, OutputEncoding string
Safe, Cx string
}
type Queries struct {
NextPage, Request []Page
}
Search searches a term on Google Custom Search and returns a Result.
It requires a Google API Key (key) and a Google Custom Search ID (cx).
type SearchInformation struct {
SearchTime float64
FormattedSearchTime string
TotalResults string
FormattedTotalResults string
}
type Url struct {
Type, Template string
}
Source Files
¶
Directories
¶
Google Custom Search client.
|
Google Custom Search client. |
Click to show internal directories.
Click to hide internal directories.