Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewJoke ¶
func NewJoke(s JokeSource) *joke
Types ¶
type JokeSource ¶
JokeSource is the source of joke, contains source name and source api The Api response content must be an array, and every object has contains `title` or `body` field eg: [
{
"title": "joke's title"
"body": "joke's body"
}
]
Click to show internal directories.
Click to hide internal directories.