docker-multi-arch-builder/internal/version/dev.go
RouxAntoine 07424811ce
Some checks are pending
Main / build (push) Waiting to run
use TOKEN_REGISTRY variable
2024-08-31 18:33:40 +02:00

22 lines
366 B
Go

//go:build dev
package version
import (
"fmt"
)
// Version ...
var Version = "0.1.0"
// 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
}