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

Merge branch 'master' of github.com:schollz/awwkoala

This commit is contained in:
Zack Scholl 2016-02-10 14:11:11 -05:00
commit 15fa9a36fc

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