Jingwen Owen Ou
a41434aac3
Clarify more of `SkipClean`
10 years ago
Matt Silverlock
0eeaf8392f
Merge pull request #158 from raninho/master
...
[tests] old_test: const DefaultRemoteAddr is unused.
10 years ago
Raniere Fernandes de Medeiros
8e05c69b5a
old_test: const DefaultRemoteAddr is unused.
10 years ago
Matt Silverlock
acf3be1b33
Merge pull request #155 from jprobinson/master
...
[bugfix] Allow case insensitive regexp groups (fix regression in #144 )
10 years ago
JP Robinson
65c2651643
fixing regexp changes from PR #144
10 years ago
Jingwen Owen Ou
786d36e5ab
`go fmt`
10 years ago
Dave Newman
8ac5cf967f
Add SkipClean option
...
By default paths are run through the cleanPath method which prevents
using fancier paths like /fetch/http://xkcd.com/534
This adds a SkipClean option so that this path isn't redirected to
/fetch/http/xkcd.com/534
10 years ago
Matt Silverlock
147a95f5e3
Merge pull request #104 from Digitalxero/method-to-get-url-template
...
[feature] GetHostTemplate and GetPathTemplate return the template used to build the route.
10 years ago
Dj Gilcrease
f7ac7251e3
Update doc strings based on feedback
10 years ago
Matt Silverlock
c9e326e2bd
Merge pull request #150 from gorilla/elithrar/go-lint
...
[docs] Satisfied golint.
- SkipRouter should also be ErrRouterSkipped (or similar) but a change would break the public API.
10 years ago
Matt Silverlock
02c98b3f73
[docs] Satisfied golint.
...
- SkipRouter should also be ErrRouterSkipped (or similar) but a change would
break the public API.
10 years ago
Dj Gilcrease
f84ab9ab62
Fix go fmt issues
10 years ago
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
10 years ago
Shinya Kawaguchi
d17b93cab8
Refactoring for better performance
10 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