version

package
v0.0.0-...-7e6d7d1 Latest Latest
Warning

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

Go to latest
Published: May 27, 2019 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Release is the current release of pack-repo.
	// The release is of the format Major.Minor.Patch[-Prerelease][+BuildMetadata]
	//
	// If it is a development build, the release name is called "canary".
	//
	// This number is incremented automatically via build.sh.
	Release = "canary"

	// BuildMetadata is extra build time data
	BuildMetadata = ""
	// GitCommit is the git sha1
	GitCommit = ""
)

Functions

This section is empty.

Types

type Version

type Version struct {
	SemVer    string `json:"semver"`
	GitCommit string `json:"git-commit"`
}

Version contains the semver release and git commit.

func New

func New() *Version

New returns the semver interpretation of the version.

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