Ver código fonte

fix typos

tags/v0.9.0
jimzhan 9 anos atrás
pai
commit
959570a4c5
1 arquivos alterados com 2 adições e 2 exclusões
  1. +2
    -2
      README.md

+ 2
- 2
README.md Ver arquivo

@@ -107,7 +107,7 @@ Since a middleware module is just the standard http.Handler, writing custom midd
app.Use(func(next http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
log.Printf("Custom Middleware Module Started")
next.ServeHTTP(writer, request)
next.ServeHTTP(w, r)
log.Printf("Custom Middleware Module Ended")
})
})
@@ -125,7 +125,7 @@ user := app.Group("/users")
user.Use(func(next http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
log.Printf("this is a protected page")
next.ServeHTTP(writer, request)
next.ServeHTTP(w, r)
})
})
```

Carregando…
Cancelar
Salvar