1
0
mirror of https://github.com/schollz/cowyo.git synced 2023-08-10 21:13:00 +03:00
Former-commit-id: 6948946e3dc6f7dd653f5fbbfd716cdf3e79c826 [formerly 0806a0d10ae1188245036ce1dbb792fd059d95c7] [formerly 027ccc0e4a84a7da35280f96c4361c18fb137a43 [formerly f986e2b9bf]]
Former-commit-id: a2bb2a3fee52a62ce181cd0503ecc27814101c51 [formerly 00da39b4d5f7fc8ef1af69f7d9690bc6efe6b2a7]
Former-commit-id: 42329de613420419d396117c93502150995cd3cf
This commit is contained in:
Zack Scholl 2016-02-10 09:16:16 -05:00
parent 3669e8809b
commit e6353e90db

14
main.go
View File

@ -39,13 +39,13 @@ func main() {
flag.StringVar(&RuntimeArgs.ServerCRT, "crt", "", "location of ssl crt")
flag.StringVar(&RuntimeArgs.ServerKey, "key", "", "location of ssl key")
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
(see parameters).
Example: 'awwkoala localhost'
Example: 'awwkoala -p :8080 localhost'
Example: 'awwkoala -db /var/lib/awwkoala/db.bolt localhost'
Example: 'awwkoala -p :8080 -crt ssl/server.crt -key ssl/server.key localhost'
Example: 'awwkoala -p :8080 localhost:8080'
Example: 'awwkoala -db /var/lib/awwkoala/db.bolt localhost:12312'
Example: 'awwkoala -p :8080 -crt ssl/server.crt -key ssl/server.key localhost:8080'
Options:`)
flag.CommandLine.PrintDefaults()
}
@ -62,9 +62,9 @@ Options:`)
p := WikiData{"about", about_page, []string{}, []string{}}
p.save(about_page)
var q WikiData
q.load("SpikySeaSlug2")
fmt.Println(getImportantVersions(q))
// var q WikiData
// q.load("SpikySeaSlug2")
// fmt.Println(getImportantVersions(q))
r := gin.Default()
r.LoadHTMLGlob(path.Join(RuntimeArgs.SourcePath, "templates/*"))