mirror of
https://github.com/gopl-zh/gopl-zh.github.com.git
synced 2024-11-04 21:43:42 +00:00
Update update_version.go
跟新时间、构建时间 添加时分秒
This commit is contained in:
parent
0f8f4643bb
commit
fca2a506d7
@ -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"),
|
||||
)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user