From a9fe6cac9e2a5c2b2731518145676d61aa7ca894 Mon Sep 17 00:00:00 2001 From: Peter Kieltyka Date: Sat, 4 Apr 2020 18:03:57 -0400 Subject: [PATCH] README --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 448e43d7..15a36fe5 100644 --- a/README.md +++ b/README.md @@ -46,11 +46,14 @@ package main import ( "net/http" + "github.com/go-chi/chi" + "github.com/go-chi/chi/middleware" ) func main() { r := chi.NewRouter() + r.Use(middleware.Logger) r.Get("/", func(w http.ResponseWriter, r *http.Request) { w.Write([]byte("welcome")) })