diff options
Diffstat (limited to '_examples')
-rw-r--r-- | _examples/wrap/main.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/_examples/wrap/main.go b/_examples/wrap/main.go index 42e959e..2248038 100644 --- a/_examples/wrap/main.go +++ b/_examples/wrap/main.go @@ -6,7 +6,7 @@ import ( "log" "net/http" - "github.com/gogeneric/web" + "github.com/gogeneric/api" ) func main() { @@ -15,7 +15,7 @@ func main() { h.Handler = mux // Here is magic! - mux.HandleFunc("/hello", api.Wrap(handleHello)) + mux.Handle("/hello", api.Wrap(handleHello)) if err := h.ListenAndServe(); err != http.ErrServerClosed { log.Fatalln(err) |