docker-multi-arch-builder/internal/version/dev.go

22 lines
366 B
Go
Raw Normal View History

//go:build dev
package version
import (
"fmt"
)
2024-08-31 16:33:40 +00:00
// Version ...
var Version = "0.1.0"
2024-08-31 16:33:40 +00:00
// Prerelease such as "dev" (in development), "beta", "rc1", etc.
var Prerelease = "dev"
// String returns the complete version string, including prerelease
func String() string {
if Prerelease != "" {
return fmt.Sprintf("%s-%s", Version, Prerelease)
}
return Version
}