Documentation
¶
Overview ¶
Package gourban provides a golang interface to the urbandictionary.com API. It can be imported into your codebase and used like `gourban.Query(string)` or as a standalone go binary for fun.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry struct {
Definition string `json:"definition"`
Permalink string `json:"permalink"`
Upvotes int `json:"thumbs_up"`
Downvotes int `json:"thumbs_down"`
Word string `json:"word"`
Defid int `json:"defid"`
Date time.Time `json:"written_on"`
Example string `json:"example"`
}
An Entry represents a single definition from urban dictionary. Each word can have multile entries. number of up/down votes can be used to sort definitions to most (un)popular if desired.
Click to show internal directories.
Click to hide internal directories.