From c856c7e66e3ad29ea0491f1f4951b31deb8279ea Mon Sep 17 00:00:00 2001 From: Emile Date: Sun, 20 Oct 2019 16:53:28 +0200 Subject: functional --- src/main.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/main.go (limited to 'src/main.go') diff --git a/src/main.go b/src/main.go new file mode 100644 index 0000000..57007e8 --- /dev/null +++ b/src/main.go @@ -0,0 +1,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()) +} -- cgit 1.4.1