|
|
|
@ -33,7 +33,7 @@ type Stat struct {
|
|
|
|
|
func main() {
|
|
|
|
|
hostPort := flag.String("http", ":80", "host and port to listen on")
|
|
|
|
|
baseURL := flag.String("baseurl", "", "baseurl that the server should response with")
|
|
|
|
|
database := flag.String("database", "localhost:9999", "database hostpost")
|
|
|
|
|
database := flag.String("database", "localhost:9999", "database host:port")
|
|
|
|
|
flag.Parse()
|
|
|
|
|
|
|
|
|
|
log.Printf("Using arguments http=%s baseurl=%s database=%s", *hostPort, *baseURL, *database)
|
|
|
|
|