go-urlrouter icon indicating copy to clipboard operation
go-urlrouter copied to clipboard

Efficient URL routing using a Trie data structure.

Results 4 go-urlrouter issues
Sort by recently updated
recently updated
newest added

2014/07/24 15:31:39 http: panic serving 127.0.0.1:57957: runtime error: invalid memory address or nil pointer dereference goroutine 4 [running]: net/http.func·007() /usr/lib/go/src/pkg/net/http/server.go:1022 +0xac main.func·001(0xc2000cf040, 0xc2000b05b0, 0xc2000ba5b0) /home/arief/web/go/ant0ine/go-urlrouter-master/examples/webserver/main.go:37 +0x55 net/http.HandlerFunc.ServeHTTP(0xc2000765a0, 0xc2000cf040, 0xc2000b05b0, 0xc2000ba5b0)...

Add a `NewRouter` function to the router package to explicitly create a new router. The functions `AddRoute` and `AddRoutes` are added in order to explicitly add routes to the router....

is there a way to create a route to serve static files?

(since Go 1.1?) calls to rest.Route or rest.RouteObjectMethod fail for *splat routes rest.RouteObjectMethod("GET", "/users/*username", users, "GetUser") problem is in the trie package: ``` } else if token[0] == '*' {...