Documentation ¶
Index ¶
Constants ¶
View Source
const (
// DefaultURL defines the default Minecraft version URL.
DefaultURL = "https://launchermeta.mojang.com/mc/game/version_manifest.json"
)
Variables ¶
View Source
var (
// OldestMinecraft defines the oldest allowed Minecraft version.
OldestMinecraft = "1.6.4"
)
Functions ¶
This section is empty.
Types ¶
type ByVersion ¶ added in v0.2.0
type ByVersion Versions
ByVersion sorts a list of Minecraft versions by ID.
type Response ¶
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.