curseforge

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GetModsByGameIDAndName = "https://api.curseforge.com/v1/mods/search?gameId=%d&slug=%s"
)

Variables

This section is empty.

Functions

func GetDownloads added in v0.8.2

func GetDownloads(modID string) (dls []*mods.Download, err error)

func IsCurseforge

func IsCurseforge(url string) bool

func NewClient

func NewClient(compiler u.ModCompiler) *client

Types

type CfFile

type CfFile struct {
	FileID      int       `json:"id"`
	Name        string    `json:"displayName"`
	DownloadUrl string    `json:"downloadUrl"`
	FileDate    time.Time `json:"fileDate"`
}

func (CfFile) Version

func (f CfFile) Version() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL