govend: github.com/govend/govend/deps/semver Index | Files

package semver

import "github.com/govend/govend/deps/semver"

Package semver provides a way to parse and compare semantic versions.

Index

Package Files

semver.go

type SemVer Uses

type SemVer struct {
    Major int
    Minor int
    Patch int
}

SemVer describes a semantic version number.

func New Uses

func New(verison string) (SemVer, error)

New takes a semantic version number as a string and returns a SemVer object.

func (SemVer) GreaterThan Uses

func (s SemVer) GreaterThan(sem SemVer) bool

GreaterThan takes a SemVer object and reports true if it is greater than the SemVer object.

func (SemVer) GreaterThanEqual Uses

func (s SemVer) GreaterThanEqual(sem SemVer) bool

GreaterThanEqual takes a SemVer object and reports true if it is greater than or equal to the SemVer object.

func (SemVer) LessThan Uses

func (s SemVer) LessThan(sem SemVer) bool

LessThan takes a SemVer object and reports true if it is less than the SemVer object.

Package semver imports 3 packages (graph) and is imported by 11 packages. Updated 2016-07-27. Refresh now. Tools for package owners.