summaryrefslogtreecommitdiffstats
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--main.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/main.go b/main.go
new file mode 100644
index 0000000..ce89e18
--- /dev/null
+++ b/main.go
@@ -0,0 +1,18 @@
+package main
+
+import (
+ "log"
+ "net/http"
+)
+
+func home(w http.ResponseWriter, r *http.Request) {
+ w.Write([]byte("Hello from DED"))
+}
+
+func main() {
+ mux := http.NewServeMux()
+ mux.HandleFunc("/", home)
+ log.Print("starting server on :4000")
+ err := http.ListenAndServe(":4000", mux)
+ log.Fatal(err)
+}