Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Page ¶
type Page struct { ID int Title string Content string Language string URL string Redirect *redirect }
Page contains the parsed data.
type Request ¶
Request sets up the request against the api with the correct parameters and has functionality to fetch the data and convert it to a response.
func NewRequest ¶
NewRequest creates a new request against baseURL for language. Language is interpolated in the baseURL if asked, if not it is ignored. Query is the title of the page to fetch. Returns an error if the URL can not be parsed.
type Response ¶
type Response struct { Batchcomplete string Query query }
Response contains the raw data the API returns.
Click to show internal directories.
Click to hide internal directories.