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

Updated versioning

This commit is contained in:
Zack Scholl 2016-02-10 14:10:48 -05:00
parent e35d528311
commit 4f4c5660b6

View File

@ -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