summaryrefslogtreecommitdiff
path: root/internal/version.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/version.go')
-rw-r--r--internal/version.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/internal/version.go b/internal/version.go
index 7bc24e9..f85ab9f 100644
--- a/internal/version.go
+++ b/internal/version.go
@@ -1,6 +1,8 @@
package internal
-import "codeberg.org/snonux/gos/internal/table"
+import (
+ "codeberg.org/snonux/gos/internal/table"
+)
const versionStr = "v0.0.4"
@@ -9,4 +11,9 @@ func printVersion() {
Header("Gos version", "Author", "URL").
Row(versionStr, "Paul Buetow", "https://codeberg.org/snonux/gos").
MustRender()
+
+ // TODO: Make this work (based on git tag?) From Go 1.24!
+ // info, _ := debug.ReadBuildInfo()
+ // fmt.Println("Go version:", info.GoVersion)
+ // fmt.Println("App version:", info.Main.Version)
}