2019-06-21 05:27:41 +00:00
|
|
|
//go:generate go run -mod=vendor git.rootprojects.org/root/go-gitver --fail
|
|
|
|
|
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"flag"
|
|
|
|
"fmt"
|
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
2020-10-10 22:13:09 +00:00
|
|
|
commit = "0000000"
|
|
|
|
version = "0.0.0-pre0+0000000"
|
|
|
|
date = "0000-00-00T00:00:00+0000"
|
2019-06-21 05:27:41 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
showVersion := flag.Bool("version", false, "Print version and exit")
|
|
|
|
flag.Parse()
|
|
|
|
|
|
|
|
if *showVersion {
|
2020-10-10 22:13:09 +00:00
|
|
|
fmt.Println(commit)
|
|
|
|
fmt.Println(version)
|
|
|
|
fmt.Println(date)
|
2019-06-21 05:27:41 +00:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
fmt.Println("Hello, World!")
|
|
|
|
}
|