Also add go version to system output.

This commit is contained in:
Martin Dosch 2024-03-16 22:37:17 +01:00
parent 54fb96431e
commit 4c3e5700e7
No known key found for this signature in database
GPG Key ID: 52A57CFCE13D657D

View File

@ -145,8 +145,8 @@ func main() {
case *flagVersion:
// If requested, show version and quit.
fmt.Println("go-sendxmpp", version)
fmt.Println("Go:", runtime.Version())
fmt.Println("System:", runtime.GOOS, "/", runtime.GOARCH)
fmt.Println("System:", runtime.GOOS, "/", runtime.GOARCH, "/",
runtime.Version())
fmt.Println("License: BSD-2-clause")
os.Exit(0)
// Quit if Ox (OpenPGP for XMPP) is requested for unsupported operations like