Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadURL ¶
DownloadURL returns the download URL for the Fabric server JAR for a given game version and loader version.
Parameters:
- gameVersion: the Minecraft version string (e.g., "1.21.5", "25w14craftmine", "1.18-pre2").
- loaderVersion: the Fabric loader version string (e.g., "0.16.14").
Returns:
- string: the direct download URL for the Fabric server JAR file if the versions exist.
- error: an error if the game version or loader version is not found, or if any HTTP or JSON decoding issues occur.
func Loaders ¶
Loaders fetches the list of all available Fabric loader versions from the official FabricMC API.
Parameters:
- latestFirst: if true, returns the loader versions with higher versions first. If false, returns the loader versions with lower versions first.
Returns:
- []string: a slice of Fabric loader versions (e.g., "0.16.14", "0.15.11").
- error: an error if any HTTP or JSON decoding issues occur.
func Versions ¶
Versions fetches the list of all Minecraft Fabric-supported game versions from the official FabricMC API.
Parameters:
- latestFirst: if true, returns the versions with higher versions first. If false, returns the versions with lower versions first.
Returns:
- []string: a slice of Minecraft versions supported by Fabric (e.g., "1.20.5", "1.18-pre2", "20w51a").
- error: an error if any HTTP or JSON decoding issues occur.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.