diff options
| author | Paul Buetow <paul@buetow.org> | 2025-02-05 01:15:17 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-02-05 01:15:17 +0200 |
| commit | 316ef97b655e4837dbce4af3747003ed924b5874 (patch) | |
| tree | 876adf0331241b4854c2384e9dc089233ab1c6d1 /internal/version.go | |
| parent | bd97ed65bb98efbf73bda041983b83d6c434a2c8 (diff) | |
print gos version as table
Diffstat (limited to 'internal/version.go')
| -rw-r--r-- | internal/version.go | 10 |
1 files changed, 6 insertions, 4 deletions
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() } |
