version.go 862 B

123456789101112131415161718192021222324252627
  1. package version
  2. import (
  3. "fmt"
  4. )
  5. var (
  6. RepoHash = "" //打包时git的hash值
  7. RepoBranch = "" //打包时git的分支名称
  8. ExcelHash = "" //打包时excel的hash值
  9. ExcelBranch = "" //打包时excel的分支名称
  10. BuildUser = "" //构建用户
  11. BuildTime = "" //构建时间
  12. )
  13. func Print() {
  14. fmt.Println("----------------------------------------------------")
  15. fmt.Printf("RepoHash : %s\n", RepoHash)
  16. fmt.Printf("RepoBranch : %s\n", RepoBranch)
  17. fmt.Println("----------------------------------------------------")
  18. fmt.Printf("ExcelHash : %s\n", ExcelHash)
  19. fmt.Printf("ExcelBranch : %s\n", ExcelBranch)
  20. fmt.Println("----------------------------------------------------")
  21. fmt.Printf("BuildUser : %s\n", BuildUser)
  22. fmt.Printf("BuildTime : %s\n", BuildTime)
  23. fmt.Println("----------------------------------------------------")
  24. }