Documentation
¶
Index ¶
- func AddNonMetafileOverrides(index *core.IndexFS, exp *zip.Writer)
- func AddToZip(dl fileio.CompletedDownload, exp *zip.Writer, dir string) bool
- func Exitf(format string, a ...interface{})
- func Exitln(a ...interface{})
- func GetPackPaths() (string, string, error)
- func GetRawForgeVersion(version string) string
- func ListManualDownloads(session fileio.DownloadSession)
- func PrintDisclaimer(isCf bool)
- func PromptYesNo(prompt string) bool
- type McVersionManifest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddNonMetafileOverrides ¶
AddNonMetafileOverrides saves all non-metadata files into an overrides folder in the zip
func GetPackPaths ¶
func GetRawForgeVersion ¶
func ListManualDownloads ¶
func ListManualDownloads(session fileio.DownloadSession)
func PrintDisclaimer ¶
func PrintDisclaimer(isCf bool)
func PromptYesNo ¶
Types ¶
type McVersionManifest ¶
type McVersionManifest struct {
Latest struct {
Release string `json:"release"`
Snapshot string `json:"snapshot"`
} `json:"latest"`
Versions []struct {
ID string `json:"id"`
Type string `json:"type"`
URL string `json:"url"`
Time time.Time `json:"time"`
ReleaseTime time.Time `json:"releaseTime"`
} `json:"versions"`
}
func GetValidMCVersions ¶
func GetValidMCVersions() (McVersionManifest, error)
func (McVersionManifest) CheckValid ¶
func (m McVersionManifest) CheckValid(version string)
Click to show internal directories.
Click to hide internal directories.