version

package
v0.10.15 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BuildVersion string
	BuildDate    = time.Now().UTC().Format("200601021504")

	Version = func() string {
		v := BuildVersion
		if v == "" {
			v = BuildDate
		}
		if !re.Match([]byte(v)) {
			v = "dev-" + v
		}
		return v
	}()
)

BuildVersion is set on compile time representing build version If empty, build version was not set

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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