Skip to content

Commit

Permalink
Fix README example
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier Poitrey committed Dec 14, 2015
1 parent 3cd2fbb commit baae913
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -54,8 +54,8 @@ func Hello(ctx context.Context, w http.ResponseWriter, r *http.Request) {

func main() {
mux := xmux.New()
mux.GET("/", Index)
mux.GET("/hello/:name", Hello)
mux.GET("/", xhandler.HandlerFuncC(Index))
mux.GET("/hello/:name", xhandler.HandlerFuncC(Hello))

log.Fatal(http.ListenAndServe(":8080", xhandler.New(context.Background(), mux)))
}
Expand Down

0 comments on commit baae913

Please sign in to comment.