2019-03-18 07:22:55 +00:00
|
|
|
package internal
|
2019-03-09 12:41:59 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
// Version release version
|
|
|
|
Version = "0.0.1"
|
|
|
|
|
|
|
|
// Commit will be overwritten automatically by the build system
|
|
|
|
Commit = "HEAD"
|
|
|
|
)
|
|
|
|
|
|
|
|
// FullVersion returns the full version and commit hash
|
|
|
|
func FullVersion() string {
|
|
|
|
return fmt.Sprintf("%s@%s", Version, Commit)
|
|
|
|
}
|