mirror of
https://gitlab.com/pulsechaincom/go-pulse.git
synced 2025-01-05 02:04:30 +00:00
Update version
This commit is contained in:
parent
d39eeb0f2f
commit
a4fa66f78c
@ -21,10 +21,11 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
VersionMajor = 1 // Major version component of the current release
|
VersionMajor = 1 // Major version component of the current release
|
||||||
VersionMinor = 11 // Minor version component of the current release
|
VersionMinor = 0 // Minor version component of the current release
|
||||||
VersionPatch = 6 // Patch version component of the current release
|
VersionPatch = 0 // Patch version component of the current release
|
||||||
VersionMeta = "stable" // Version metadata to append to the version string
|
VariantMeta = "pulse" // Variant metadata to append to the version string
|
||||||
|
VersionMeta = "unstable" // Version metadata to append to the version string
|
||||||
)
|
)
|
||||||
|
|
||||||
// Version holds the textual version string.
|
// Version holds the textual version string.
|
||||||
@ -35,6 +36,9 @@ var Version = func() string {
|
|||||||
// VersionWithMeta holds the textual version string including the metadata.
|
// VersionWithMeta holds the textual version string including the metadata.
|
||||||
var VersionWithMeta = func() string {
|
var VersionWithMeta = func() string {
|
||||||
v := Version
|
v := Version
|
||||||
|
if VariantMeta != "" {
|
||||||
|
v += "-" + VariantMeta
|
||||||
|
}
|
||||||
if VersionMeta != "" {
|
if VersionMeta != "" {
|
||||||
v += "-" + VersionMeta
|
v += "-" + VersionMeta
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user