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 4f4c5660b6
]]
Former-commit-id: be2f26d53fee8a7eeed31795adc53a38e49938ec [formerly 43276c1326a664401de9ff907e74563913d0f025]
Former-commit-id: 25d5b7cc6b3d97cf6cc5689b893fb07c6157ba40
This commit is contained in:
parent
8842a0644d
commit
3ad3b537fa
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