Documentation ¶
Overview ¶
Package chucknorris is a golang implementation of the ICNDB API
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CNDBRequest ¶
CNDBRequest is used to specify request parameters for the API
func (*CNDBRequest) URLValues ¶
func (r *CNDBRequest) URLValues() url.Values
URLValues translates properities of Request struct to URL Parameters for API
type CNDBResponse ¶
CNDBResponse is the type for API Result
type Joke ¶
Joke struct represents the Joke returned by ICNDB API
func GetJokeByID ¶
func GetJokeByID(id int, req *CNDBRequest) (*Joke, error)
GetJokeByID can be used to get a joke specified by its ID
func GetRandomJoke ¶
func GetRandomJoke(req *CNDBRequest) (*Joke, error)
GetRandomJoke returns a random joke from ICNDB API
Click to show internal directories.
Click to hide internal directories.