stillbox/internal/version/version.go
2024-10-22 10:21:11 -04:00

21 lines
372 B
Go

package version
import (
"fmt"
"runtime"
)
var (
Name = "gordio"
Version = "unset"
Built = "unset"
)
func String() string {
return fmt.Sprintf("gordio %s\nbuilt %s for %s-%s\n",
Version, Built, runtime.GOOS, runtime.GOARCH)
}
func HttpString(app string) string {
return fmt.Sprintf("stillbox %s/%s (%s/%s)", app, Version, runtime.GOOS, runtime.GOARCH)
}