set version when building (#1042)

go build -ldflags "-X main.VERSION=${VERSION}"
This commit is contained in:
旺汪
2022-01-07 15:08:58 +03:00
committed by GitHub
parent 4aacf73ef2
commit 6c89827ba5
+1 -1
View File
@@ -1,4 +1,4 @@
package main
// VERSION the current version of goreplay
const VERSION = "1.3.0"
var VERSION = "1.3.0"