Skip to content

Commit

Permalink
release version v1.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
iseki0 committed Apr 6, 2022
1 parent 5bedcb0 commit 062258e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
9 changes: 2 additions & 7 deletions version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
8 changes: 8 additions & 0 deletions version/version_pro.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
//go:build pro

package version

// Version returns version string
func Version() string {
return version
}
8 changes: 8 additions & 0 deletions version/version_saas.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
//go:build !pro

package version

// Version returns version string
func Version() string {
return version + "-saas"
}

0 comments on commit 062258e

Please sign in to comment.