diff --git a/version/version.go b/version/version.go index a4f3ce7f..4bb25f77 100644 --- a/version/version.go +++ b/version/version.go @@ -9,16 +9,11 @@ import ( "sync" ) -const version = "v1.5.0" - -// Version returns version string -func Version() string { - return version -} +const version = "v1.5.1" // PrintVersionInfo print version info to stdout func PrintVersionInfo() { - fmt.Printf("%s %s\n", filepath.Base(must.String(filepath.EvalSymlinks(must.String(os.Executable())))), version) + fmt.Printf("%s %s\n", filepath.Base(must.String(filepath.EvalSymlinks(must.String(os.Executable())))), Version()) } var _ua = func() func() string { diff --git a/version/version_pro.go b/version/version_pro.go new file mode 100644 index 00000000..2825ee72 --- /dev/null +++ b/version/version_pro.go @@ -0,0 +1,8 @@ +//go:build pro + +package version + +// Version returns version string +func Version() string { + return version +} diff --git a/version/version_saas.go b/version/version_saas.go new file mode 100644 index 00000000..6951022d --- /dev/null +++ b/version/version_saas.go @@ -0,0 +1,8 @@ +//go:build !pro + +package version + +// Version returns version string +func Version() string { + return version + "-saas" +}