version

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2019 License: Apache-2.0 Imports: 3 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Version

type Version []string

Version is a record of a new version for a single source

func NewVersion

func NewVersion(raw string) Version

NewVersion creates a new version by parsing from a string

func (Version) Compare

func (v Version) Compare(old Version) int

Compare allows to version nubmers to be compared to see which is newer (higher)

func (Version) Less

func (v Version) Less(other Version) bool

Less checks if this version is less than another

Jump to

Keyboard shortcuts

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