package version import ( "fmt" ) var ( RepoHash = "" //打包时git的hash值 RepoBranch = "" //打包时git的分支名称 ExcelHash = "" //打包时excel的hash值 ExcelBranch = "" //打包时excel的分支名称 BuildUser = "" //构建用户 BuildTime = "" //构建时间 ) func Print() { fmt.Println("----------------------------------------------------") fmt.Printf("RepoHash : %s\n", RepoHash) fmt.Printf("RepoBranch : %s\n", RepoBranch) fmt.Println("----------------------------------------------------") fmt.Printf("ExcelHash : %s\n", ExcelHash) fmt.Printf("ExcelBranch : %s\n", ExcelBranch) fmt.Println("----------------------------------------------------") fmt.Printf("BuildUser : %s\n", BuildUser) fmt.Printf("BuildTime : %s\n", BuildTime) fmt.Println("----------------------------------------------------") }