version

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2021 License: GPL-3.0 Imports: 8 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 Load

func Load() (*Version, error)

Load a Version from a file

func (*Version) Save

func (v *Version) Save()

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