From 4f4c5660b6b0bae218d1d8da3b7278d694aed306 Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Wed, 10 Feb 2016 14:10:48 -0500 Subject: [PATCH] Updated versioning --- 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