version

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Version

type Version []int

Version is a tuple of non-negative integers that represents the version of a software package.

func ParseVersion

func ParseVersion(vs string) (Version, error)

ParseVersion parses a version of the form "12.34.56-abcd". Non-negative integer components are separated by dots. An arbitrary suffix may appear after '-', which is ignored.

func (Version) Compare

func (x Version) Compare(y Version) int

Compare returns an integer comparing two versions lexicographically.

func (Version) String

func (v Version) String() string

Jump to

Keyboard shortcuts

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