Dj Gilcrease
0d60c4bfeb
Add tests for GetPathTemplate. Added GetHostTemplate and associated tests as well
10 years ago
Dj Gilcrease
16507e2c47
Merge branch 'master' into method-to-get-url-template
10 years ago
Matt Silverlock
c582f4facc
Merge pull request #149 from gorilla/elithrar/readme-website
...
[docs] Add http://www.gorillatoolkit.org/pkg/mux to README.
10 years ago
Matt Silverlock
5f42f0f524
[docs] Add http://www.gorillatoolkit.org/pkg/mux to README.
10 years ago
Matt Silverlock
d067e87329
Merge pull request #144 from tumdum/regexp-speedup
...
[refactor] Only wrap regexp in group if not already in a group + perf. gains.
- Addresses https://github.com/gorilla/mux/issues/62
- ~27% less allocs/~15% speedup (ns/op)
10 years ago
Matt Silverlock
dfc482b255
Merge pull request #148 from gorilla/ci/travis-go-1.6
...
[ci] Update .travis.yml to build Go 1.6
10 years ago
Matt Silverlock
7872f90afa
Update .travis.yml to build Go 1.6
10 years ago
Tomasz Kłak
78fb8eb962
Added benchmark with deep path
10 years ago
Tomasz Kłak
f48927253f
Named groups replaced with conditional wrapping of regexps
10 years ago
Matt Silverlock
26a6070f84
Merge pull request #141 from tcyrus/patch-1
...
[docs] Tidy up README formatting.
10 years ago
Timothy Cyrus
66181ed337
Update README.md
10 years ago
Matt Silverlock
2aad27d310
Merge pull request #139 from bign8/issue_20
...
[feature] NotFoundHandler on Subrouters is now called correctly.
10 years ago
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.
10 years ago
bign8
c329c7d193
Potential fix for #20
10 years ago
Matt Silverlock
9c068cf16d
Merge pull request #134 from shurcooL/travis-CI-more-thorough
...
[ci] Perform gofmt, go vet checks; use race detector during tests.
10 years ago
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.
10 years ago
Matt Silverlock
48e889f422
Merge pull request #133 from mttrs/govet
...
[test] Correct a printf verb type
10 years ago
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
10 years ago
Matt Silverlock
ad4d7a5882
Merge pull request #128 from mcasper/typo
...
[docs] Add docs to private functions; fix typo.
10 years ago
Matt Casper
ac3897eae3
Fix a typo in the comments, add a few comment docs
10 years ago
Kamil Kisiel
49c0242755
Merge pull request #125 from eastwood/develop
...
Fixed documentation from Issue 16
10 years ago
Clint Ryan
8ae7a23e03
Fixed documentation from Issue 16
10 years ago
Kamil Kisiel
ee1815431e
Update .travis.yml
10 years ago
Kamil Kisiel
f8220e087d
travis-ci: more recent go versions
10 years ago
Matt Silverlock
f7b6aaaa69
Merge pull request #122 from gorilla/README-badge-fix
...
Fixed GoDoc badge.
10 years ago
Matt Silverlock
e45852e537
Fixed GoDoc badge.
10 years ago
Kamil Kisiel
b0b2bc47bc
Quote domain names in README.md. Use example.com instead of domain.com
...
Fixes #119
10 years ago
Kamil Kisiel
5112c33f3a
slightly improve printing of regexps in failed tests.
10 years ago
Kamil Kisiel
e330fd08a3
Merge pull request #120 from shkw/reduce-variable-name-restriction
...
Reduce variable name restriction
11 years ago
Shinya Kawaguchi
d17b93cab8
Refactoring for better performance
11 years ago
Shinya Kawaguchi
273db68971
Fix regexp syntax error caused by variable names containing any characters except letters, digits, and underscores
11 years ago
Shinya Kawaguchi
577b9e4a65
Add tests for hyphenated variable names
11 years ago
Kamil Kisiel
ffb3f683aa
Merge pull request #118 from elithrar/full-example
...
Updated README w/ runnable example. Addresses #32 .
11 years ago
Matt Silverlock
ca524fd37f
Updated README w/ runnable example. Addresses #32 .
11 years ago
Kamil Kisiel
8965bfef36
Merge branch 'subexp-fix'
11 years ago
Kamil Kisiel
c3c5f0000f
Add test which used to fail for queries.
...
Fixes #66
11 years ago
Kamil Kisiel
780d0505d7
Update README
11 years ago
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
11 years ago
Kamil Kisiel
5a8a040050
Merge pull request #116 from brocaar/add_current_route_note
...
Add note about the availability of CurrentRoute.
11 years ago
Orne Brocaar
13c8226081
Update comment and specify KeepContext option.
11 years ago
Orne Brocaar
39cff3481c
Add note about the availability of CurrentRoute.
11 years ago
Kamil Kisiel
f15e0c4946
Merge pull request #100 from eastwood/master
...
Issue #16 : Added regex support for matching headers
11 years ago
Clint Ryan
98fb535d77
Issue 16: Return the regexp compile error
11 years ago
Kamil Kisiel
ba336c9cfb
getUrlQuery: Use SplitN with a max of 2.
11 years ago
Kamil Kisiel
61445102e8
Merge pull request #111 from burrbd/master
...
Issue #109
11 years ago
Bay Dodd
3339267a85
adding tests
11 years ago
Bay Dodd
fe40f0d056
updating query match string
11 years ago
Kamil Kisiel
104068abd5
Merge pull request #106 from Digitalxero/router-walk-adjustments
...
Update the walk method …
11 years ago
Kamil Kisiel
fe156cb197
Merge pull request #108 from burrbd/master
...
fix for empty query
11 years ago
Bay Dodd
19f0a91c4e
adding test and updating condition
11 years ago