mirror of
https://github.com/schollz/cowyo.git
synced 2023-08-10 21:13:00 +03:00
Updated versioning
This commit is contained in:
parent
e35d528311
commit
4f4c5660b6
4
main.go
4
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
|
||||
|
Loading…
Reference in New Issue
Block a user