Documentation ¶
Index ¶
- Constants
- Variables
- func Copyfile(src string, dest string) error
- func ExtractFileFromTarBz2(tarfile string, filename string, destination string) error
- func ExtractFileFromZip(zipfile string, filename string, destination string) error
- func MinecraftVersionAsInteger(version string) (int, error)
- func ReadFileFromTarBz2(tarfile string, filename string) ([]byte, error)
- func ReadFileFromZip(zipfile string, filename string) ([]byte, error)
- type Downloader
- type Library
- func (l *Library) ExtractExcludes() []string
- func (l *Library) GetArtifact() string
- func (l *Library) GetDownloadUrl() string
- func (l *Library) GetDownloadUrls() []string
- func (l *Library) GetFilename() string
- func (l *Library) GetNative() string
- func (l *Library) GetPath() string
- func (l *Library) GetPathLocal() string
- func (l *Library) Matches() bool
- func (l *Library) MustExtract() bool
Constants ¶
View Source
const CURSECDN_URL_BASE = "https://modloaders.cursecdn.com/647622546/maven/"
Variables ¶
View Source
var GENERIC_FALLBACK_MAVEN_BASE_URLS = []string{"https://libraries.minecraft.net/",
"https://files.minecraftforge.net/maven/",
"https://repo1.maven.org/maven2/"}
Functions ¶
func ExtractFileFromTarBz2 ¶
func ExtractFileFromZip ¶
Types ¶
type Downloader ¶
type Downloader struct {
DownloadDir string
}
func NewDownloader ¶
func NewDownloader(downloadDir string) *Downloader
func (*Downloader) DownloadToDefaultFilename ¶
func (d *Downloader) DownloadToDefaultFilename(downloadUrl string) (string, error)
func (*Downloader) DownloadToSpecificFilename ¶
func (d *Downloader) DownloadToSpecificFilename(downloadUrl string, filename string) (string, error)
func (*Downloader) NewSubdownloader ¶
func (d *Downloader) NewSubdownloader(downloadDir string) *Downloader
type Library ¶
type Library struct { Name string // contains filtered or unexported fields }
func NewLibrary ¶
func NewLibraryFromName ¶
func (*Library) ExtractExcludes ¶
func (*Library) GetArtifact ¶
func (*Library) GetDownloadUrl ¶
func (*Library) GetDownloadUrls ¶
func (*Library) GetFilename ¶
func (*Library) GetPathLocal ¶
func (*Library) MustExtract ¶
Click to show internal directories.
Click to hide internal directories.