mirror of
https://github.com/schollz/cowyo.git
synced 2023-08-10 21:13:00 +03:00
Renaming
Former-commit-id: 6948946e3dc6f7dd653f5fbbfd716cdf3e79c826 [formerly 0806a0d10ae1188245036ce1dbb792fd059d95c7] [formerly 027ccc0e4a84a7da35280f96c4361c18fb137a43 [formerly 8594a5b39854c824d9e70181248085acf793cc86 [formerlyf986e2b9bf
]]] Former-commit-id: a2bb2a3fee52a62ce181cd0503ecc27814101c51 [formerly 00da39b4d5f7fc8ef1af69f7d9690bc6efe6b2a7] Former-commit-id: 42329de613420419d396117c93502150995cd3cf Former-commit-id:e6353e90db
This commit is contained in:
parent
b3402aae37
commit
25607dd3c8
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