Dj Gilcrease
f7ac7251e3
Update doc strings based on feedback
2016-02-29 07:54:15 -08:00
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.
2016-02-28 19:40:56 -08:00
Matt Silverlock
02c98b3f73
[docs] Satisfied golint.
...
- SkipRouter should also be ErrRouterSkipped (or similar) but a change would
break the public API.
2016-02-28 19:32:22 -08:00
Dj Gilcrease
f84ab9ab62
Fix go fmt issues
2016-02-28 14:46:18 -08:00
Dj Gilcrease
0d60c4bfeb
Add tests for GetPathTemplate. Added GetHostTemplate and associated tests as well
2016-02-28 14:42:09 -08:00
Dj Gilcrease
16507e2c47
Merge branch 'master' into method-to-get-url-template
2016-02-28 13:16:25 -08:00
Matt Silverlock
c582f4facc
Merge pull request #149 from gorilla/elithrar/readme-website
...
[docs] Add http://www.gorillatoolkit.org/pkg/mux to README.
2016-02-28 12:29:58 -08:00
Matt Silverlock
5f42f0f524
[docs] Add http://www.gorillatoolkit.org/pkg/mux to README.
2016-02-28 12:25:42 -08:00
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)
2016-02-28 12:22:47 -08:00
Matt Silverlock
dfc482b255
Merge pull request #148 from gorilla/ci/travis-go-1.6
...
[ci] Update .travis.yml to build Go 1.6
2016-02-26 13:29:39 -08:00
Matt Silverlock
7872f90afa
Update .travis.yml to build Go 1.6
2016-02-26 13:23:39 -08:00
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