mirror of
https://git.mills.io/kayos/bitraft.git
synced 2024-06-28 09:41:38 +00:00
19 lines
304 B
Go
19 lines
304 B
Go
|
package main
|
||
|
|
||
|
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)
|
||
|
}
|