Documentation ¶
Index ¶
Constants ¶
View Source
const APIURL = "https://api.chucknorris.io/jokes/random?category="
APIURL is the URL of the Chuck Norris API
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIResponse ¶
type APIResponse struct { Categories []string `json:"categories"` CreatedAt string `json:"created_at"` IconURL string `json:"icon_url"` ID string `json:"id"` UpdatedAt string `json:"updated_at"` URL string `json:"url"` Value string `json:"value"` }
APIResponse is the response from the Chuck Norris API
Click to show internal directories.
Click to hide internal directories.