Merge pull request #6 from iamybj/master

Update update_version.go
pull/8/head
曹春晖 2016-09-05 11:33:22 +08:00 committed by GitHub
commit 9a1312e8ad
2 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,5 @@
{ {
"gitbook": "2.x.x", "gitbook": "2.x",
"title": "Go语言圣经", "title": "Go语言圣经",
"description": "<The Go Programming Language>中文版", "description": "<The Go Programming Language>中文版",
"language": "zh-hans", "language": "zh-hans",

View File

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