summaryrefslogtreecommitdiffstats
path: root/main.go
diff options
context:
space:
mode:
authorThomas Boerger <thomas@webhippie.de>2016-11-04 12:32:04 +0100
committerThomas Boerger <thomas@webhippie.de>2016-11-04 23:45:06 +0100
commit212a04a45ec0b4899138a0ae4a14d859bda899e4 (patch)
treef1ff6ce403489a070ca8b282f43bf37b5719aa92 /main.go
parent648c6fdd6045735a603444f0408e18981a334591 (diff)
downloadgitea-212a04a45ec0b4899138a0ae4a14d859bda899e4.tar.gz
gitea-212a04a45ec0b4899138a0ae4a14d859bda899e4.zip
Linter doesn't like uppercase variables
Diffstat (limited to 'main.go')
-rw-r--r--main.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/main.go b/main.go
index 43eb8fdb72..f077b5ec31 100644
--- a/main.go
+++ b/main.go
@@ -16,18 +16,19 @@ import (
"github.com/urfave/cli"
)
-const APP_VER = "0.9.99.0915"
+// Version holds the current Gitea version
+const Version = "0.9.99.0915"
func init() {
runtime.GOMAXPROCS(runtime.NumCPU())
- setting.AppVer = APP_VER
+ setting.AppVer = Version
}
func main() {
app := cli.NewApp()
app.Name = "Gogs"
app.Usage = "Go Git Service: a painless self-hosted Git service"
- app.Version = APP_VER
+ app.Version = Version
app.Commands = []cli.Command{
cmd.CmdWeb,
cmd.CmdServ,