Add release script

This commit is contained in:
James Mills
2021-09-18 09:43:22 +10:00
parent 3644a88f46
commit da3aeb9bb2
3 changed files with 68 additions and 0 deletions

18
version.go Normal file
View File

@@ -0,0 +1,18 @@
package main
import (
"fmt"
)
var (
// Version release version
Version = "0.0.1"
// Commit will be overwritten automatically by the build system
Commit = "HEAD"
)
// FullVersion display the full version and build
func FullVersion() string {
return fmt.Sprintf("%s@%s", Version, Commit)
}