diff options
Diffstat (limited to 'cmd/web/main.go')
-rw-r--r-- | cmd/web/main.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/cmd/web/main.go b/cmd/web/main.go new file mode 100644 index 0000000..bd7e500 --- /dev/null +++ b/cmd/web/main.go @@ -0,0 +1,17 @@ +package main + +import ( + "log" + "net/http" +) + +type application struct{} + +func main() { + app := &application{} + // mux := http.NewServeMux() + // mux.HandleFunc("/", home) + log.Print("starting server on :4000") + err := http.ListenAndServe(":4000", app.routes()) + log.Fatal(err) +} |