Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClientOption ¶
type ClientOption func(c *client)
ClientOption is an interface for a functional option
func WithBaseUrl ¶
func WithBaseUrl(baseUrl string) ClientOption
WithBaseUrl is a functional option to configure the client's base URL
type Item ¶
type Item struct { ID int `json:"id"` Type string `json:"type"` Text string `json:"text"` URL string `json:"url"` Score int `json:"score"` Title string `json:"title"` CreatedAt time.Time `json:"createdAt"` CreatedBy string `json:"createdBy"` Dead bool `json:"dead"` Deleted bool `json:"deleted"` }
Item represents the API response structure of an item
Click to show internal directories.
Click to hide internal directories.