All checks were successful
PR Check / check-and-test (pull_request) Successful in 11s
- Enhanced .goreleaser.yaml for improved build configuration, including static linking and ARM64 support. - Updated logging in root.go to include version date during startup. - Modified version.go to initialize and expose the build date alongside the version. - Adjusted version command output to display both version and date for better clarity.
17 lines
223 B
Go
17 lines
223 B
Go
// version/version.go
|
|
package version
|
|
|
|
import "time"
|
|
|
|
var Version string
|
|
var Date string
|
|
|
|
func init() {
|
|
if Version == "" {
|
|
Version = "0.0.0-dev"
|
|
}
|
|
if Date == "" {
|
|
Date = time.Now().Format("2006-01-02 15:04:05")
|
|
}
|
|
}
|