Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (15 sloc) 355 Bytes
package main
import (
"flag"
"log"
)
const dbpath = "db.sqlite"
var (
httpAddr = flag.String("http", ":8080", "HTTP service address and port")
staticDir = flag.String("static", "./static/", "static and templates files directory")
)
func main() {
flag.Parse()
log.Println("Used database", dbpath)
log.Fatal(StartServer(*httpAddr, staticDir))
}