From 316ef97b655e4837dbce4af3747003ed924b5874 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Wed, 5 Feb 2025 01:15:17 +0200 Subject: print gos version as table --- internal/version.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'internal') diff --git a/internal/version.go b/internal/version.go index 0a2511c..7bc24e9 100644 --- a/internal/version.go +++ b/internal/version.go @@ -1,10 +1,12 @@ package internal -import "fmt" +import "codeberg.org/snonux/gos/internal/table" -const versionStr = "v0.0.3" +const versionStr = "v0.0.4" func printVersion() { - fmt.Printf("This is Gos version %s; (C) by Paul Buetow\n", versionStr) - fmt.Println("https://codeberg.org/snonux/gos") + table.New(). + Header("Gos version", "Author", "URL"). + Row(versionStr, "Paul Buetow", "https://codeberg.org/snonux/gos"). + MustRender() } -- cgit v1.2.3