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
Former-commit-id: da2af383553a11c7d6f47fd3e4ca0a154ebc7011 [formerly c8a0fba11208e0f79356fc2fa401d8204f6b77e3] [formerly f8fb759af8ed84c1e096f321da177c4affb97937 [formerly c5ceb05383c621f129bc9fd92847bde94d58ec1c [formerly15fa9a36fc
]]] Former-commit-id: 10596393252eca06ac8a7357f43dce03f0f3ab2d [formerly 5813bbcdc430d37f87506b6dd9490a84598e0a80] Former-commit-id: c558190219491c509e6709175444e137b24fd72a Former-commit-id:86676ddb4c
This commit is contained in:
commit
ee8587eec3
4
main.go
4
main.go
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user