1
0
mirror of https://github.com/schollz/cowyo.git synced 2023-08-10 21:13:00 +03:00

Updated versioning

Former-commit-id: abd0b61336eb64f478cc6300f3d414160d9d6d45 [formerly 855a0b74553f3e788a27950795edc9b5c172103c] [formerly 15fda576887d72efd22ab86cce2f4429266135f2 [formerly ae75f433d364ded1b8e6e1310fe6a0403ab25352 [formerly 4f4c5660b6]]]
Former-commit-id: be2f26d53fee8a7eeed31795adc53a38e49938ec [formerly 43276c1326a664401de9ff907e74563913d0f025]
Former-commit-id: 25d5b7cc6b3d97cf6cc5689b893fb07c6157ba40
Former-commit-id: 3ad3b537fa
This commit is contained in:
Zack Scholl 2016-02-10 14:10:48 -05:00
parent d981922a13
commit 9ad57d2f54

View File

@ -29,8 +29,10 @@ var RuntimeArgs struct {
SourcePath string SourcePath string
AdminKey string AdminKey string
} }
var VersionNum string
func main() { func main() {
VersionNum = "1.01"
_, executableFile, _, _ := runtime.Caller(0) // get full path of this file _, executableFile, _, _ := runtime.Caller(0) // get full path of this file
databaseFile := path.Join(path.Dir(executableFile), "data.db") databaseFile := path.Join(path.Dir(executableFile), "data.db")
flag.StringVar(&RuntimeArgs.Port, "p", ":12312", "port to bind") flag.StringVar(&RuntimeArgs.Port, "p", ":12312", "port to bind")
@ -59,7 +61,7 @@ Options:`)
defer Close() defer Close()
// Default page // Default page
p := WikiData{"about", aboutPageText, []string{}, []string{}} p := WikiData{"about", aboutPageText + "\n" + VersionNum, []string{}, []string{}}
p.save(aboutPageText) p.save(aboutPageText)
// var q WikiData // var q WikiData