mirror of
https://github.com/netbirdio/netbird.git
synced 2024-11-07 08:44:07 +01:00
21 lines
412 B
Go
21 lines
412 B
Go
package version
|
|
|
|
import (
|
|
"regexp"
|
|
|
|
v "github.com/hashicorp/go-version"
|
|
)
|
|
|
|
// will be replaced with the release version when using goreleaser
|
|
var version = "development"
|
|
|
|
var (
|
|
VersionRegexp = regexp.MustCompile("^" + v.VersionRegexpRaw + "$")
|
|
SemverRegexp = regexp.MustCompile("^" + v.SemverRegexpRaw + "$")
|
|
)
|
|
|
|
// NetbirdVersion returns the Netbird version
|
|
func NetbirdVersion() string {
|
|
return version
|
|
}
|