We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59ce668 commit 043ee65Copy full SHA for 043ee65
README.md
@@ -326,9 +326,9 @@ the following prints all of the registered routes:
326
```go
327
r := mux.NewRouter()
328
r.HandleFunc("/", handler)
329
-r.Methods("POST").HandleFunc("/products", handler)
330
-r.Methods("GET").HandleFunc("/articles", handler)
331
-r.Methods("GET", "PUT").HandleFunc("/articles/{id}", handler)
+r.HandleFunc("/products", handler).Methods("POST")
+r.HandleFunc("/articles", handler).Methods("GET")
+r.HandleFunc("/articles/{id}", handler).Methods("GET", "PUT")
332
r.Walk(func(route *mux.Route, router *mux.Router, ancestors []*mux.Route) error {
333
t, err := route.GetPathTemplate()
334
if err != nil {
0 commit comments