gosimplenpm/main.go

14 lines
196 B
Go

package main
import (
"log"
"net/http"
)
func main() {
app := new(application)
log.Print("Starting server on port 4000")
err := http.ListenAndServe(":4000", app.Routes())
log.Fatal(err)
}