You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
295 B

  1. package version
  2. const Maj = "0"
  3. const Min = "10"
  4. const Fix = "0"
  5. var (
  6. // The full version string
  7. Version = "0.10.0"
  8. // GitCommit is set with --ldflags "-X main.gitCommit=$(git rev-parse HEAD)"
  9. GitCommit string
  10. )
  11. func init() {
  12. if GitCommit != "" {
  13. Version += "-" + GitCommit[:8]
  14. }
  15. }