README ¶ urbandictionary Urban Dictionnary API wrapper in golang Expand ▾ Collapse ▴ Documentation ¶ Index ¶ Constants type Result type SearchResult func Query(searchTerm string) (*SearchResult, error) Constants ¶ View Source const API_URL = "http://api.urbandictionary.com/v0/define?term=" Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Result ¶ type Result struct { Author string Word string Definition string Example string Permalink string Upvote int `json:"thumbs_up"` Downvote int `json:"thumbs_down"` } type SearchResult ¶ type SearchResult struct { Type string `json:"result_type"` Tags []string Results []Result `json:"list"` Sounds []string } func Query ¶ func Query(searchTerm string) (*SearchResult, error) Source Files ¶ View all Source files api.go Click to show internal directories. Click to hide internal directories.