diff options
author | Antoine GIRARD | 2019-01-24 16:22:51 +0100 |
---|---|---|
committer | techknowlogick | 2019-01-24 10:22:51 -0500 |
commit | d6c229cdbe842eb4c7b2f21f412644b44fa74c0e (patch) | |
tree | 0d28328c399f78566ef55d66c57561a41c57c29c /main.go | |
parent | 4aa2f4f45f462910d829a5cb34c2472ba9adc59c (diff) |
Include Go toolchain to --version (#5830)
* Include Go version
* fix import order
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -8,6 +8,7 @@ package main // import "code.gitea.io/gitea" import ( "os" + "runtime" "strings" "code.gitea.io/gitea/cmd" @@ -61,8 +62,8 @@ arguments - which can alternatively be run by running the subcommand web.` func formatBuiltWith(Tags string) string { if len(Tags) == 0 { - return "" + return " built with " + runtime.Version() } - return " built with: " + strings.Replace(Tags, " ", ", ", -1) + return " built with " + runtime.Version() + " : " + strings.Replace(Tags, " ", ", ", -1) } |