ver

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: MIT Imports: 5 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version = "undefined"
	GitSha  = "undefined"
	Release = "false"
	Dirty   = "true"
)

Functions

func ParseVersion

func ParseVersion(version string) (semver.Version, string, bool, error)

ParseVersion will take a version string and parse it

func VersionCacheKey

func VersionCacheKey(version, gitsha, release, dirty string) string

VersionCacheKey returns a key to version the cache

func VersionStr

func VersionStr() (string, error)

func VersionString

func VersionString(version, gitsha, releaseStr, dirtyStr string) (string, error)

VersionString returns the version string

Types

This section is empty.

Jump to

Keyboard shortcuts

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