Skip to content

Commit

Permalink
#49 generate url with parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Reindert Vetter committed Jun 2, 2020
1 parent 71eda88 commit 5d1c928
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,18 @@ import (
"lanvard/bootstrap"
"log"
net "net/http"
"time"
)

func main() {
net.HandleFunc("/", HandleKernel)

log.Println("Server is ready to handle requests")
if err := net.ListenAndServe(":80", nil); err != nil && err != net.ErrServerClosed {
server := &net.Server{
Addr: ":80",
Handler: net.HandlerFunc(HandleKernel),
WriteTimeout: 30 * time.Second,
ReadTimeout: 30 * time.Second,
}
if err := server.ListenAndServe(); err != nil && err != net.ErrServerClosed {
log.Fatal("Could not listen", err)
}

Expand Down

0 comments on commit 5d1c928

Please sign in to comment.