blob: ce89e18e9067f4e1fa471b4f384b51184c93eab5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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)
}
|