Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Response ¶
type Response struct { Results []Result `json:"list"` Tags []string `json:"tags"` Type string `json:"result_type"` }
Response describes the data structure that comes back from the Urban Dictionary API.
type Result ¶
type Result struct { ID int64 `json:"defid"` Author string `json:"author"` Definition string `json:"definition"` Link string `json:"permalink"` ThumbsDown int64 `json:"thumbs_down"` ThumbsUp int64 `json:"thumbs_up"` Word string `json:"word"` }
Result holds the information for a given definition.
Click to show internal directories.
Click to hide internal directories.