aboutsummaryrefslogtreecommitdiff
path: root/example/http_server.go
diff options
context:
space:
mode:
Diffstat (limited to 'example/http_server.go')
-rwxr-xr-xexample/http_server.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/example/http_server.go b/example/http_server.go
index ef25567..86255e6 100755
--- a/example/http_server.go
+++ b/example/http_server.go
@@ -4,15 +4,16 @@ package main
import (
"context"
- "github.com/neonxp/rutina"
"io"
"log"
"net/http"
+
+ "github.com/neonxp/rutina"
)
func main() {
// New instance with builtin context. Alternative: r, ctx := rutina.OptionContext(ctx)
- r, _ := rutina.New(rutina.WithStdLogger())
+ r := rutina.New(rutina.WithStdLogger())
srv := &http.Server{Addr: ":8080"}
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {