blob: 7f62960e98eff36882bab808181eaf1e87461d69 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
package internal
import (
"fmt"
"codeberg.org/snonux/gos/internal/table"
)
const versionStr = "v1.0.0"
func printVersion() {
table.New().
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)
}
func printLogo() {
raw := ` █████████
███░░░░░███
██░░░ ░░░ ██████ █████
░███ ███░░███ ███░░
░███ █████░███ ░███░░█████
░░███ ░░███ ░███ ░███ ░░░░███
░░█████████ ░░██████ ██████
░░░░░░░░░ ░░░░░░ ░░░░░░`
fmt.Println(raw)
}
|