version

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Snapshot is a weekly release
	Snapshot = iota
	// Release is a full version release
	Release
	// PreRelease is a pre release
	PreRelease
	// ReleaseCandidate is a release candidate
	ReleaseCandidate
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Type

type Type uint

Type holds iota for version type

type Version

type Version struct {
	Type      Type
	ID        string
	Changelog bool
}

Version holds minecraft version info

func FromManifest

func FromManifest(m manifest.Manifest) Version

FromManifest instanciates a Version from the latest published version on manifest

func FromManifestVersion added in v1.6.2

func FromManifestVersion(v manifest.Version) Version

func Load

func Load(basePath string) (*Version, error)

Load a Version from a file

func (*Version) Save

func (v *Version) Save(basePath string)

Save writes the Version to a json file

func (*Version) ToURL

func (v *Version) ToURL() string

ToURL converts Version ID to URL for changelog

Jump to

Keyboard shortcuts

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