Files
docker-machine/version/version.go
Joffrey F 702c267fc3 Bump version to 0.16.0
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-11-08 12:18:11 -08:00

24 lines
426 B
Go

package version
import (
"fmt"
"strings"
)
var (
Version = "0.16.0"
// GitCommit will be overwritten automatically by the build system
GitCommit = "HEAD"
)
// FullVersion formats the version to be printed
func FullVersion() string {
return fmt.Sprintf("%s, build %s", Version, GitCommit)
}
// RC checks if the Machine version is a release candidate or not
func RC() bool {
return strings.Contains(Version, "rc")
}