diff --git a/cmd/gunfish/gunfish.go b/cmd/gunfish/gunfish.go index b9a9cef..c0991b9 100644 --- a/cmd/gunfish/gunfish.go +++ b/cmd/gunfish/gunfish.go @@ -14,6 +14,8 @@ import ( "github.com/kayac/Gunfish" ) +var version string + func main() { var ( config string @@ -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 } diff --git a/const.go b/const.go index ec64334..36ff88e 100644 --- a/const.go +++ b/const.go @@ -4,11 +4,6 @@ import ( "time" ) -// Version -const ( - Version = "v0.1.1" -) - // Limit values const ( MaxWorkerNum = 119 // Maximum of worker number