Versions in this module Expand all Collapse all v0 v0.1.1 Nov 21, 2026 v0.1.0 Nov 8, 2026 Changes in this version + const BaseURL + var ErrBadKey = errors.New("itch.io rejected the API key") + var ErrNeedsKey = errors.New("needs an itch.io API key") + func PageURL(id string) string + func ParsePageURL(text string) (string, bool) + func ValidPage(id string) bool + type Client struct + func New(cfg Config) *Client + func (c *Client) DownloadURL(ctx context.Context, uploadID string) (string, error) + func (c *Client) Me(ctx context.Context) (User, error) + func (c *Client) SearchGames(ctx context.Context, query string, page int) ([]Game, error) + func (c *Client) Uploads(ctx context.Context, gameID string) ([]Upload, error) + type Config struct + BaseURL string + HTTP *http.Client + Key string + UserAgent string + type Game struct + CoverURL string + ID int + PublishedAt string + ShortText string + Title string + URL string + User User + type Upload struct + Demo bool + Filename string + ID int + Size int64 + Type string + UpdatedAt string + type User struct + Username string