From ff657fd508bb2c61ba447d3e83906e18e15fc4ff Mon Sep 17 00:00:00 2001 From: Jason Streifling Date: Sun, 18 Feb 2024 07:20:51 +0100 Subject: [PATCH] The simplest web server --- go.mod | 3 +++ main.go | 8 ++++++++ 2 files changed, 11 insertions(+) create mode 100644 go.mod create mode 100644 main.go diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..ef11760 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module streifling.com/jason/cpolis + +go 1.22.0 diff --git a/main.go b/main.go new file mode 100644 index 0000000..4a8253d --- /dev/null +++ b/main.go @@ -0,0 +1,8 @@ +package main + +import "net/http" + +func main() { + mux := http.NewServeMux() + http.ListenAndServe(":8080", mux) +}