Skip to content
Snippets Groups Projects
Select Git revision
  • b6c4f5ea1bc14b6fad7db06665f6b0db82e93119
  • master default
2 results

index.ts

Blame
  • version.go 436 B
    package version
    
    import (
    	"fmt"
    	"strings"
    )
    
    var (
    	Version = "0.16.2-gitlab.18"
    
    	// 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")
    }