Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func URLEncoded ¶
URLEncoded encodes a string to be used in a query part of a URL
func WikipediaAPI ¶
WikipediaAPI communicate with wikipedia api
Types ¶
type Result ¶
type Result struct {
Name, Description, URL string
}
Result structure which contains parsed results
type SearchResults ¶
type SearchResults struct {
Query string
Results []Result
// contains filtered or unexported fields
}
SearchResults structure with query and all Result data
func (*SearchResults) UnmarshalJSON ¶
func (sr *SearchResults) UnmarshalJSON(bs []byte) error
UnmarshalJSON set data to strcuture
Click to show internal directories.
Click to hide internal directories.