quilt

package
v0.0.0-...-dca6f25 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultURL defines the default Forge version URL.
	DefaultURL = "https://maven.quiltmc.org/repository/release/org/quiltmc/quilt-loader/maven-metadata.xml"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ByVersion

type ByVersion Versions

ByVersion sorts a list of versions by ID.

func (ByVersion) Len

func (b ByVersion) Len() int

Len is part of the sorting algorithm.

func (ByVersion) Less

func (b ByVersion) Less(i, j int) bool

Less is part of the sorting algorithm.

func (ByVersion) Sort

func (b ByVersion) Sort()

Sort simply sorts the versions list.

func (ByVersion) Swap

func (b ByVersion) Swap(i, j int)

Swap is part of the sorting algorithm.

type Response

type Response struct {
	Versions Versions
}

Response simply defines the result with all versions.

func FromDefault

func FromDefault() (Response, error)

FromDefault is a simply wrapper that loads the default URL.

type Version

type Version struct {
	Value string
}

Version represents a single version of Quilt.

type Versions

type Versions []Version

Versions is a simple slice of available versions.

Jump to

Keyboard shortcuts

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