Commit Graph

271 Commits

Author SHA1 Message Date
Tomasz Kłak
78fb8eb962 Added benchmark with deep path 2016-01-23 18:09:52 +01:00
Tomasz Kłak
f48927253f Named groups replaced with conditional wrapping of regexps 2016-01-23 17:42:00 +01:00
Matt Silverlock
26a6070f84 Merge pull request #141 from tcyrus/patch-1
[docs] Tidy up README formatting.
2015-12-31 08:19:08 -08:00
Timothy Cyrus
66181ed337 Update README.md 2015-12-31 11:12:17 -05:00
Matt Silverlock
2aad27d310 Merge pull request #139 from bign8/issue_20
[feature] NotFoundHandler on Subrouters is now called correctly.
2015-12-29 14:32:19 +08:00
Nate Woods
82a9c170d4 Covering change with unit test
This test focuses on the feature of allowing sub-routers error handlers to precede the parents, rather than the code change required to provide this functionality.
2015-12-26 00:09:25 -07:00
bign8
c329c7d193 Potential fix for #20 2015-12-25 13:18:57 -07:00
Matt Silverlock
9c068cf16d Merge pull request #134 from shurcooL/travis-CI-more-thorough
[ci] Perform gofmt, go vet checks; use race detector during tests.
2015-11-11 18:35:30 +08:00
Dmitri Shuralyov
9a9f155278 Travis: Perform gofmt, go vet checks; use race detector during tests.
This change augments the Travis CI build to perform:

- Check that all files follow gofmt style, including -s (simplify) option.
- Check that go vet does not report any problems.
- Use race detector when running tests, to ensure there are no data races found.
2015-11-08 17:29:33 -08:00
Matt Silverlock
48e889f422 Merge pull request #133 from mttrs/govet
[test] Correct a printf verb type
2015-11-08 13:16:49 +08:00
mitsuteru sawa
a90bbbc6fa Correct a printf verb type
% go vet
mux_test.go:1080: arg len(ancestors) for printf verb %s of wrong type:
int
2015-11-07 21:34:30 +09:00
Matt Silverlock
ad4d7a5882 Merge pull request #128 from mcasper/typo
[docs] Add docs to private functions; fix typo.
2015-10-03 15:26:51 +08:00
Matt Casper
ac3897eae3 Fix a typo in the comments, add a few comment docs 2015-10-03 00:21:00 -07:00
Kamil Kisiel
49c0242755 Merge pull request #125 from eastwood/develop
Fixed documentation from Issue 16
2015-09-08 09:58:39 -07:00
Clint Ryan
8ae7a23e03 Fixed documentation from Issue 16 2015-09-08 21:31:30 +10:00
Kamil Kisiel
ee1815431e Update .travis.yml 2015-08-19 22:15:06 -07:00
Kamil Kisiel
f8220e087d travis-ci: more recent go versions 2015-08-16 00:31:34 -07:00
Matt Silverlock
f7b6aaaa69 Merge pull request #122 from gorilla/README-badge-fix
Fixed GoDoc badge.
2015-08-14 22:29:16 +08:00
Matt Silverlock
e45852e537 Fixed GoDoc badge. 2015-08-14 22:25:16 +08:00
Kamil Kisiel
b0b2bc47bc Quote domain names in README.md. Use example.com instead of domain.com
Fixes #119
2015-08-13 12:01:04 -07:00
Kamil Kisiel
5112c33f3a slightly improve printing of regexps in failed tests. 2015-08-11 22:16:39 -07:00
Kamil Kisiel
e330fd08a3 Merge pull request #120 from shkw/reduce-variable-name-restriction
Reduce variable name restriction
2015-08-10 22:40:28 -07:00
Shinya Kawaguchi
d17b93cab8 Refactoring for better performance 2015-08-11 14:26:09 +09:00
Shinya Kawaguchi
273db68971 Fix regexp syntax error caused by variable names containing any characters except letters, digits, and underscores 2015-08-11 04:32:47 +09:00
Shinya Kawaguchi
577b9e4a65 Add tests for hyphenated variable names 2015-08-11 04:05:30 +09:00
Kamil Kisiel
ffb3f683aa Merge pull request #118 from elithrar/full-example
Updated README w/ runnable example. Addresses #32.
2015-08-07 23:16:13 -07:00
Matt Silverlock
ca524fd37f Updated README w/ runnable example. Addresses #32. 2015-08-08 12:41:49 +08:00
Kamil Kisiel
8965bfef36 Merge branch 'subexp-fix' 2015-08-07 13:34:10 -07:00
Kamil Kisiel
c3c5f0000f Add test which used to fail for queries.
Fixes #66
2015-08-06 22:12:38 -07:00
Kamil Kisiel
780d0505d7 Update README 2015-08-06 20:46:08 -07:00
Kamil Kisiel
e73f183699 fix use of capturing subexpressions in pattern matches.
The router now associates a regexp named group with each mux variable.
It only fills variables when capturing group name match instead of
relying on indices, which doesn't work if a variable regexp has interior
capturing groups.

Fixes #62
2015-08-06 20:32:43 -07:00
Kamil Kisiel
5a8a040050 Merge pull request #116 from brocaar/add_current_route_note
Add note about the availability of CurrentRoute.
2015-08-05 09:48:15 -07:00
Orne Brocaar
13c8226081 Update comment and specify KeepContext option. 2015-08-05 10:24:37 +02:00
Orne Brocaar
39cff3481c Add note about the availability of CurrentRoute. 2015-08-05 09:26:50 +02:00
Kamil Kisiel
f15e0c4946 Merge pull request #100 from eastwood/master
Issue #16: Added regex support for matching headers
2015-07-27 09:40:50 -07:00
Clint Ryan
98fb535d77 Issue 16: Return the regexp compile error 2015-07-19 18:57:47 +10:00
Kamil Kisiel
ba336c9cfb getUrlQuery: Use SplitN with a max of 2. 2015-07-17 08:03:03 -07:00
Kamil Kisiel
61445102e8 Merge pull request #111 from burrbd/master
Issue #109
2015-07-17 08:02:10 -07:00
Bay Dodd
3339267a85 adding tests 2015-07-17 10:52:37 +01:00
Bay Dodd
fe40f0d056 updating query match string 2015-07-17 10:19:25 +01:00
Kamil Kisiel
104068abd5 Merge pull request #106 from Digitalxero/router-walk-adjustments
Update the walk method  …
2015-07-16 10:39:48 -07:00
Kamil Kisiel
fe156cb197 Merge pull request #108 from burrbd/master
fix for empty query
2015-07-16 07:26:10 -07:00
Bay Dodd
19f0a91c4e adding test and updating condition 2015-07-16 12:48:02 +01:00
Bay Dodd
2b32409792 fix for empty query 2015-07-16 10:52:01 +01:00
Dj Gilcrease
92ae1d6726 Update the walk method to walk matchers so it walks the full list of routers and child routers 2015-07-09 11:46:53 -07:00
Dj Gilcrease
8eb02a9f12 Add URLPathTemplate to Route to make it easier to generate a API page that lists all routes by template 2015-07-08 09:47:01 -07:00
Kamil Kisiel
9cb89f07ca Add a couple of additional tests for query strings. 2015-07-05 16:02:00 -07:00
Bay Dodd
0c9d5c08c1 refactoring 2015-07-05 23:03:37 +01:00
Bay Dodd
a710a8bfa9 adding ^ and $ to query pattern 2015-07-05 12:49:02 +01:00
Clint Ryan
306509329b Merge branch 'master' of https://github.com/eastwood/mux
Conflicts:
	mux.go
2015-07-05 20:19:34 +10:00