shared

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LatestForgeMavenVersion

func LatestForgeMavenVersion(m MavenMeta, mc string) (string, bool)

func LatestMavenVersion

func LatestMavenVersion(m MavenMeta, mc string) (string, bool)

Types

type ApiMetaVersioning

type ApiMetaVersioning struct {
	Text        string                      `xml:",chardata"`
	Latest      string                      `xml:"latest"`
	Release     string                      `xml:"release"`
	Versions    MavenMetaVersioningVersions `xml:"versions"`
	LastUpdated string                      `xml:"lastUpdated"`
}

type GameVersionMeta

type GameVersionMeta struct {
	Version string `json:"version"`
	Stable  bool   `json:"stable"`
}

type LoaderVersionMeta

type LoaderVersionMeta struct {
	Separator string `json:"separator"`
	Build     int    `json:"build"`
	Maven     string `json:"maven"`
	Version   string `json:"version"`
	Stable    bool   `json:"stable"`
}

type MavenMeta

type MavenMeta struct {
	XMLName    xml.Name          `xml:"metadata"`
	Text       string            `xml:",chardata"`
	GroupId    string            `xml:"groupId"`
	ArtifactId string            `xml:"artifactId"`
	Versioning ApiMetaVersioning `xml:"versioning"`
}

type MavenMetaVersioningVersions

type MavenMetaVersioningVersions struct {
	Text    string   `xml:",chardata"`
	Version []string `xml:"version"`
}

type YarnVersionMeta

type YarnVersionMeta struct {
	GameVersion string `json:"gameVersion"`
	Separator   string `json:"separator"`
	Build       int    `json:"build"`
	Maven       string `json:"maven"`
	Version     string `json:"version"`
	Stable      bool   `json:"stable"`
}

func LatestYarnVersion

func LatestYarnVersion(v []YarnVersionMeta, mc string) (YarnVersionMeta, bool)

Jump to

Keyboard shortcuts

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