Update update_version.go

跟新时间、构建时间 添加时分秒
This commit is contained in:
iamybj 2016-09-03 10:13:53 +08:00 committed by GitHub
parent 0f8f4643bb
commit fca2a506d7

View File

@ -28,8 +28,8 @@ func main() {
}
fmt.Println("build version", version)
fmt.Println(commitTime.Format("2006-01-02"))
fmt.Println(buildTime.Format("2006-01-02"))
fmt.Println(commitTime.Format("2006-01-02 15:04:05"))
fmt.Println(buildTime.Format("2006-01-02 15:04:05"))
}
// 生成版本文件
@ -44,8 +44,8 @@ func makeVersionMarkdown(version string, commitTime, buildTime time.Time) string
- 构建时间%s
`,
version, version,
commitTime.Format("2006-01-02"),
buildTime.Format("2006-01-02"),
commitTime.Format("2006-01-02 15:04:05"),
buildTime.Format("2006-01-02 15:04:05"),
)
}