github.com/bhojpur/cache@v0.0.4/pkg/version/version.go (about) 1 package version 2 3 import "fmt" 4 5 var ( 6 // Version is the semver release name of this build 7 Version string 8 // Commit is the commit hash this build was created from 9 Commit string 10 // Date is the time when this build was created 11 Date string 12 ) 13 14 // Print writes the version info to stdout 15 func Print() { 16 fmt.Printf("Version: %s\n", Version) 17 fmt.Printf("Commit: %s\n", Commit) 18 fmt.Printf("Build Date: %s\n", Date) 19 }