version

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// VerMajor is the major version
	VerMajor = 0
	// VerMinor is the monor version
	VerMinor = 1
	// VerPatch is the patch version
	VerPatch = 2
	// GitHash is the current git commit hash
	GitHash = "Unknown"
)

Functions

This section is empty.

Types

type Version

type Version struct {
	GitHash   string
	GoVersion string
	// contains filtered or unexported fields
}

Version is the semver of the release

func NewVersion

func NewVersion() *Version

NewVersion creates a Version object

func (*Version) SemVer

func (v *Version) SemVer() string

SemVer returns Version in semver format

func (*Version) String

func (v *Version) String() string

String converts Version to a string

Jump to

Keyboard shortcuts

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