Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadFile ¶
Types ¶
type LaunchMeta ¶
type LaunchMeta struct { Success bool `json:"success"` LaunchTypeData struct { Artifacts []Artifacts `json:"artifacts"` MainClass string `json:"mainClass"` } `json:"launchTypeData"` Licenses []struct { File string `json:"file"` URL string `json:"url"` Sha1 string `json:"sha1"` } `json:"licenses"` Textures struct { IndexURL string `json:"indexUrl"` IndexSha1 string `json:"indexSha1"` BaseURL string `json:"baseUrl"` } `json:"textures"` Jre struct { Download struct { URL string `json:"url"` Extension string `json:"extension"` } `json:"download"` ExecutablePathInArchive []string `json:"executablePathInArchive"` CheckFiles [][]string `json:"checkFiles"` ExtraArguments []string `json:"extraArguments"` JavawDownload interface{} `json:"javawDownload"` JavawExeChecksum interface{} `json:"javawExeChecksum"` JavaExeChecksum string `json:"javaExeChecksum"` } `json:"jre"` }
func FetchLaunchMeta ¶
func FetchLaunchMeta(launchdata LaunchBody) (response LaunchMeta, err error)
func (LaunchMeta) DownloadArtifacts ¶
func (data LaunchMeta) DownloadArtifacts(path string) (err error)
func (LaunchMeta) DownloadCosmetics ¶
func (data LaunchMeta) DownloadCosmetics(path string) (err error)
Click to show internal directories.
Click to hide internal directories.