inject git version into build

This commit is contained in:
Chris Lu
2020-06-02 00:10:35 -07:00
parent ea93d21641
commit bc2ec6774d
15 changed files with 35 additions and 27 deletions

View File

@@ -6,4 +6,9 @@ import (
var (
VERSION = fmt.Sprintf("%s %d.%d", sizeLimit, 1, 79)
COMMIT = ""
)
func Version() string {
return VERSION + " " + COMMIT
}