ver

package module
v0.0.0-...-35bea94 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 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