Versions in this module Expand all Collapse all v0 v0.1.3 Jun 14, 2026 Changes in this version type Client + func (c *Client) ByType(ctx context.Context, jokeType string, count int) ([]Joke, error) + func (c *Client) Random(ctx context.Context, count int) ([]Joke, error) type Joke + Punchline string v0.1.2 Jun 14, 2026 Changes in this version + type Category struct + Name string type Client + func (c *Client) Joke(ctx context.Context, category, jType, lang string, safe bool, blacklist string) (*Joke, error) type Joke + Explicit bool + Joke string + Lang string + NSFW bool + Political bool + Racist bool + Religious bool + Sexist bool v0.1.1 Jun 14, 2026 Changes in this version type Client + func (c *Client) Categories(ctx context.Context) ([]string, error) + func (c *Client) Jokes(ctx context.Context, category string, safe bool, count int, blacklist string) ([]Joke, error) + type Config struct + BaseURL string + Rate time.Duration + Retries int + Timeout time.Duration + UserAgent string + func DefaultConfig() Config + type Joke struct + Category string + Delivery string + ID int + Rank int + Safe bool + Setup string + Text string + Type string v0.1.0 Jun 14, 2026 Changes in this version + const BaseURL + const DefaultUserAgent + const Host + type Client struct + HTTP *http.Client + Rate time.Duration + Retries int + UserAgent string + func NewClient() *Client + func (c *Client) Get(ctx context.Context, url string) ([]byte, error) + func (c *Client) GetPage(ctx context.Context, path string) (*Page, error) + func (c *Client) PageLinks(ctx context.Context, path string, limit int) ([]*Page, error) + type Domain struct + func (Domain) Classify(input string) (uriType, id string, err error) + func (Domain) Info() kit.DomainInfo + func (Domain) Locate(uriType, id string) (string, error) + func (Domain) Register(app *kit.App) + type Page struct + Body string + ID string + Title string + URL string