Skip to content

Commit

Permalink
use main.version for -v output
Browse files Browse the repository at this point in the history
  • Loading branch information
fujiwara committed Apr 17, 2017
1 parent 4087045 commit d648817
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 3 additions & 1 deletion cmd/gunfish/gunfish.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import (
"github.com/kayac/Gunfish"
)

var version string

func main() {
var (
config string
Expand All @@ -40,7 +42,7 @@ func main() {

if showVersion {
fmt.Printf("Compiler: %s %s\n", runtime.Compiler, runtime.Version())
fmt.Printf("Gunfish version: %s\n", gunfish.Version)
fmt.Printf("Gunfish version: %s\n", version)
return
}

Expand Down
5 changes: 0 additions & 5 deletions const.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ import (
"time"
)

// Version
const (
Version = "v0.1.1"
)

// Limit values
const (
MaxWorkerNum = 119 // Maximum of worker number
Expand Down

0 comments on commit d648817

Please sign in to comment.