mirror of
https://github.com/schollz/cowyo.git
synced 2023-08-10 21:13:00 +03:00
Renaming
This commit is contained in:
parent
6a6b53ca0a
commit
f986e2b9bf
14
main.go
14
main.go
@ -39,13 +39,13 @@ func main() {
|
|||||||
flag.StringVar(&RuntimeArgs.ServerCRT, "crt", "", "location of ssl crt")
|
flag.StringVar(&RuntimeArgs.ServerCRT, "crt", "", "location of ssl crt")
|
||||||
flag.StringVar(&RuntimeArgs.ServerKey, "key", "", "location of ssl key")
|
flag.StringVar(&RuntimeArgs.ServerKey, "key", "", "location of ssl key")
|
||||||
flag.CommandLine.Usage = func() {
|
flag.CommandLine.Usage = func() {
|
||||||
fmt.Println(`awwkoala: a websocket notepad
|
fmt.Println(`AwwKoala: A Websocket Wiki and Kind Of A List Application
|
||||||
run this to start the server and then visit localhost at the port you specify
|
run this to start the server and then visit localhost at the port you specify
|
||||||
(see parameters).
|
(see parameters).
|
||||||
Example: 'awwkoala localhost'
|
Example: 'awwkoala localhost'
|
||||||
Example: 'awwkoala -p :8080 localhost'
|
Example: 'awwkoala -p :8080 localhost:8080'
|
||||||
Example: 'awwkoala -db /var/lib/awwkoala/db.bolt localhost'
|
Example: 'awwkoala -db /var/lib/awwkoala/db.bolt localhost:12312'
|
||||||
Example: 'awwkoala -p :8080 -crt ssl/server.crt -key ssl/server.key localhost'
|
Example: 'awwkoala -p :8080 -crt ssl/server.crt -key ssl/server.key localhost:8080'
|
||||||
Options:`)
|
Options:`)
|
||||||
flag.CommandLine.PrintDefaults()
|
flag.CommandLine.PrintDefaults()
|
||||||
}
|
}
|
||||||
@ -62,9 +62,9 @@ Options:`)
|
|||||||
p := WikiData{"about", about_page, []string{}, []string{}}
|
p := WikiData{"about", about_page, []string{}, []string{}}
|
||||||
p.save(about_page)
|
p.save(about_page)
|
||||||
|
|
||||||
var q WikiData
|
// var q WikiData
|
||||||
q.load("SpikySeaSlug2")
|
// q.load("SpikySeaSlug2")
|
||||||
fmt.Println(getImportantVersions(q))
|
// fmt.Println(getImportantVersions(q))
|
||||||
|
|
||||||
r := gin.Default()
|
r := gin.Default()
|
||||||
r.LoadHTMLGlob(path.Join(RuntimeArgs.SourcePath, "templates/*"))
|
r.LoadHTMLGlob(path.Join(RuntimeArgs.SourcePath, "templates/*"))
|
||||||
|
Loading…
Reference in New Issue
Block a user