1
0
mirror of https://github.com/chai2010/advanced-go-programming-book.git synced 2025-05-24 12:32:21 +00:00

Update ch5-03-middleware.md

This commit is contained in:
LaoK996 2018-11-28 22:57:14 +08:00 committed by GitHub
parent 16c4ea82e1
commit 71af00ac37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -227,7 +227,7 @@ r.Add("/", helloHandler)
type middleware func(http.Handler) http.Handler type middleware func(http.Handler) http.Handler
type Router struct { type Router struct {
middlewareChain [] func(http.Handler) http.Handler middlewareChain [] middleware
mux map[string] http.Handler mux map[string] http.Handler
} }