Carl Jackson 11 years ago
parent
commit
3273bcd371
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      web/web.go

+ 2
- 2
web/web.go View File

@ -14,8 +14,8 @@ A usage example:
Use your favorite HTTP verbs and the interfaces you know and love from net/http: Use your favorite HTTP verbs and the interfaces you know and love from net/http:
var legacyFooHttpHandler http.Handler // From elsewhere
m.Get("/foo", legacyFooHttpHandler)
var existingHTTPHandler http.Handler // From elsewhere
m.Get("/foo", existingHTTPHandler)
m.Post("/bar", func(w http.ResponseWriter, r *http.Request) { m.Post("/bar", func(w http.ResponseWriter, r *http.Request) {
w.Write([]byte("Hello world!")) w.Write([]byte("Hello world!"))
}) })


Loading…
Cancel
Save