Added version package

This commit is contained in:
phoenix
2025-10-29 19:00:43 -04:00
parent d261297a1c
commit ed2a440872
+12 -2
View File
@@ -1,7 +1,17 @@
package version package version
import "fmt"
var ( var (
Version = "dev" Version = "dev"
Commit = "none" BuildTime = "unknown"
Date = "unknown" Commit = "unknown"
GoVersion = "unknown"
) )
func String() string {
return fmt.Sprintf(
"Version: %s\nBuild Date: %s\nCommit: %s\nGo Version: %s",
Version, BuildTime, Commit, GoVersion,
)
}