about summary refs log tree commit diff
path: root/src/main.go
blob: 57007e8895c20ac6b6dc500097bdcf09dba5486b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package main

import (
	"flag"
	"log"
)

func main() {
	// Set up flags
	registerHTTPFlags()
	flag.Parse()

	// Set up the http server
	log.Printf("Running the HTTP server on port %d", *port)
	httpServer := setupHTTPServer()

	log.Fatalln(httpServer.ListenAndServe())
}