diff version.go @ 49:88a7d4a1ff62 draft

Add release script
author prologic
date Fri, 17 Sep 2021 23:43:22 +0000
parents
children c6785950280e
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/version.go	Fri Sep 17 23:43:22 2021 +0000
@@ -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)
+}