Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is an XKCD client
type ClientOption ¶
type ClientOption func(*Client)
ClientOption is options for a Client
func WithHTTP ¶
func WithHTTP(client *http.Client) ClientOption
WithHTTP sets the http.Client for the XKCD Client
type Comic ¶
type Comic struct { Month string `json:"month"` Num int `json:"num"` Link string `json:"link"` Year string `json:"year"` News string `json:"news"` SafeTitle string `json:"safe_title"` Transcript string `json:"transcript"` Alt string `json:"alt"` Img string `json:"img"` Title string `json:"title"` Day string `json:"day"` }
Comic is an XKCD comic
Click to show internal directories.
Click to hide internal directories.