semver

package
v0.0.0-...-cc996d8 Latest Latest
Warning

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

Go to latest
Published: May 11, 2020 License: Zlib Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

semver holds standard version structure.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Version

type Version struct {
	Product    string
	Major      uint16
	Minor      uint16
	Patch      uint16
	PreRelease string
	InHex      bool
}

func Parse

func Parse(s string) (*Version, error)

func (*Version) Comp

func (v1 *Version) Comp(v2 *Version) (r int)

Compare v1 to v2.

-1 if v1 <  v2
 0 if v1 == v2
+1 if v1 >  v2

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