Documentation ¶
Overview ¶
Provides a qod of the specified category (http://quotes.rest/qod/categories to see the list of available public categories).
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BaseURL, Category string = "http://quotes.rest/qod.json?category=", "love"
Functions ¶
Types ¶
type QuoteContent ¶
type QuoteHandler ¶
var Quotes QuoteHandler
func NewQuote ¶
func NewQuote(BaseURL, Category string) QuoteHandler
Construct a new QuoteHandler from specified URL and Category.
type QuoteInfo ¶
type QuoteInfo struct {
Quotes []*QuoteContent
}
Click to show internal directories.
Click to hide internal directories.