diff --git a/httpServer.go b/httpServer.go new file mode 100644 index 0000000..b75f2d0 --- /dev/null +++ b/httpServer.go @@ -0,0 +1,15 @@ +package main + +import ( + "fmt" + "net/http" +) + +func main() { + http.HandleFunc("/", handler) + http.ListenAndServe("localhost:8080", nil) +} + +func handler(w http.ResponseWriter, r *http.Request) { + fmt.Fprintln(w, "Hello, World!") +}