Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DuckDuckGoSearchClient ¶
type DuckDuckGoSearchClient struct {
// contains filtered or unexported fields
}
func NewDuckDuckGoSearchClient ¶
func NewDuckDuckGoSearchClient() *DuckDuckGoSearchClient
func (*DuckDuckGoSearchClient) Search ¶
func (c *DuckDuckGoSearchClient) Search(query string) ([]Result, error)
func (*DuckDuckGoSearchClient) SearchLimited ¶
func (c *DuckDuckGoSearchClient) SearchLimited(query string, limit int) ([]Result, error)
type Result ¶
type Result struct { HtmlFormattedUrl string `json:"htmlFormattedUrl,omitempty"` HtmlTitle string `json:"htmlTitle,omitempty"` HtmlSnippet string `json:"htmlSnippet,omitempty"` FormattedUrl string `json:"formattedUrl,omitempty"` Title string `json:"title,omitempty"` Snippet string `json:"snippet,omitempty"` Icon Icon `json:"icon,omitempty"` }
Click to show internal directories.
Click to hide internal directories.