Versions in this module Expand all Collapse all v0 v0.1.0 Nov 2, 2026 Changes in this version + const BaseURL + const MaturityExplicit + const MaxPageSize + const SortDownloads + const SortName + const SortNewest + const SortPopular + const SortRating + const SortUpdated + var ErrNoFile = errors.New("modio: mod has no file to download") + var ErrNoToken = errors.New("modio: no access token") + func Denied(err error) bool + func UserURL(userID int) string + type Client struct + func New(cfg Config) *Client + func (c *Client) Dependencies(ctx context.Context, gameID, modID int, recursive bool) ([]Mod, error) + func (c *Client) Files(ctx context.Context, gameID, modID int) ([]File, error) + func (c *Client) Me(ctx context.Context) (User, error) + func (c *Client) Mod(ctx context.Context, gameID, modID int) (Mod, error) + func (c *Client) Search(ctx context.Context, q SearchQuery) (ModList, error) + func (c *Client) Tags(ctx context.Context, gameID int) ([]string, error) + type Config struct + BaseURL string + HTTP *http.Client + Platform string + Token string + UserAgent string + UserID int + type File struct + Changelog string + Download struct{ ... } + Filehash struct{ ... } + Filename string + Filesize int64 + ID int + Version string + func (f File) Downloadable() bool + func (f File) MD5() string + func (f File) VersionName() string + type Mod struct + DateUpdated int64 + Description string + ID int + Logo struct{ ... } + MaturityOption int + Modfile File + Name string + ProfileURL string + Stats struct{ ... } + SubmittedBy struct{ ... } + Summary string + Tags []struct{ ... } + func (m Mod) Explicit() bool + type ModList struct + Data []Mod + Total int + type SearchQuery struct + GameID int + IDs []int + Limit int + Offset int + Sort string + TagsIn []string + TagsNotIn []string + Text string + type User struct + ID int + Username string