From 9ad57d2f54ecc39a5c8bb1d4595ec4b121897ca4 Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Wed, 10 Feb 2016 14:10:48 -0500 Subject: [PATCH] Updated versioning Former-commit-id: abd0b61336eb64f478cc6300f3d414160d9d6d45 [formerly 855a0b74553f3e788a27950795edc9b5c172103c] [formerly 15fda576887d72efd22ab86cce2f4429266135f2 [formerly ae75f433d364ded1b8e6e1310fe6a0403ab25352 [formerly 4f4c5660b6b0bae218d1d8da3b7278d694aed306]]] Former-commit-id: be2f26d53fee8a7eeed31795adc53a38e49938ec [formerly 43276c1326a664401de9ff907e74563913d0f025] Former-commit-id: 25d5b7cc6b3d97cf6cc5689b893fb07c6157ba40 Former-commit-id: 3ad3b537fa438809dc2fd0df010118ba8bed438b --- main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index e2c7541..0885a65 100644 --- a/main.go +++ b/main.go @@ -29,8 +29,10 @@ var RuntimeArgs struct { SourcePath string AdminKey string } +var VersionNum string func main() { + VersionNum = "1.01" _, executableFile, _, _ := runtime.Caller(0) // get full path of this file databaseFile := path.Join(path.Dir(executableFile), "data.db") flag.StringVar(&RuntimeArgs.Port, "p", ":12312", "port to bind") @@ -59,7 +61,7 @@ Options:`) defer Close() // Default page - p := WikiData{"about", aboutPageText, []string{}, []string{}} + p := WikiData{"about", aboutPageText + "\n" + VersionNum, []string{}, []string{}} p.save(aboutPageText) // var q WikiData