package
Version:
v0.2.7
Opens a new window with list of versions in this module.
Published: Aug 27, 2023
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func WithApiKey(apiKey string) coption
WithApiKey
func WithEngineID(engineID string) coption
WithEngineID sets the engine ID.
type Answer struct {
Upvotecount string `json:"upvotecount"`
Text string `json:"text"`
Datecreated string `json:"datecreated"`
URL string `json:"url"`
}
type Item struct {
Title string `json:"title"`
Link string `json:"link"`
Snippet string `json:"snippet"`
Post Post `json:"pagemap"`
}
type Post struct {
Question []Question `json:"question"`
Answers []Answer `json:"answer"`
}
type Question struct {
Upvotecount string `json:"upvotecount"`
Answercount string `json:"answercount"`
Name string `json:"name"`
Datecreated string `json:"datecreated"`
Text string `json:"text"`
URL string `json:"url"`
}
type SearchResult struct {
Items []Item `json:"items"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.