Documentation
¶
Index ¶
Constants ¶
View Source
const (
// DefaultURL defines the default Forge version URL.
DefaultURL = "https://files.minecraftforge.net/net/minecraftforge/forge/maven-metadata.json"
)
Variables ¶
View Source
var ( // OldestMinecraft defines the oldest allowed Minecraft version. OldestMinecraft = "1.6.4" // DownloadHomepage defines the download base url to fetch installer. DownloadHomepage = "https://maven.minecraftforge.net/net/minecraftforge/forge" )
Functions ¶
This section is empty.
Types ¶
type ByMinecraft ¶ added in v0.2.0
type ByMinecraft Versions
ByMinecraft sorts a list of Forge versions by ID.
func (ByMinecraft) Len ¶ added in v0.2.0
func (b ByMinecraft) Len() int
Len is part of the sorting algorithm.
func (ByMinecraft) Less ¶ added in v0.2.0
func (b ByMinecraft) Less(i, j int) bool
Less is part of the sorting algorithm.
func (ByMinecraft) Sort ¶ added in v0.2.0
func (b ByMinecraft) Sort()
Sort simply sorts the versions list.
func (ByMinecraft) Swap ¶ added in v0.2.0
func (b ByMinecraft) Swap(i, j int)
Swap is part of the sorting algorithm.
type ByVersion ¶ added in v0.2.0
type ByVersion Versions
ByVersion sorts a list of Forge versions by ID.
type Response ¶
type Response struct {
Releases Versions `json:"releases"`
}
Response is the standard root element for the version list.
func FromDefault ¶
FromDefault is a simply wrapper that loads the default URL.
func FromString ¶
FromString parses a version definition from string.
func (*Response) UnmarshalJSON ¶
UnmarshalJSON implements the custom JSON unmarshaler.
Click to show internal directories.
Click to hide internal directories.