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")) })