Kamil Kisiel
14cafe2851
Merge pull request #60 from roylee17/gofmt
...
gofmt
2014-06-24 11:46:26 -07:00
Tzu-Jung Lee
3351f602a5
gofmt
2014-06-24 11:40:51 -07:00
Kamil Kisiel
854d482e26
Fix racy modification of NotFoundHandler.
2014-06-04 14:12:38 -07:00
Kamil Kisiel
0ef595e787
Merge pull request #56 from raphael/query-vars
...
Fix "Queries" matcher to support out-of-order query string parameters
2014-05-27 16:41:47 -07:00
Raphael Simon
451fd8b779
Additional code cleanup (see comments on issue #56 )
2014-05-27 16:37:30 -07:00
Raphael Simon
3505396fb5
Code cleanup (see comments on issue #56 )
2014-05-27 11:36:15 -07:00
Raphael Simon
69237eaae5
Fix "Queries" matcher to support out-of-order query string parameters
2014-05-27 09:34:08 -07:00
Kamil Kisiel
2900ff05a4
Merge pull request #55 from raphael/query-vars
...
Add ability to capture variables in query strings
2014-05-26 21:48:09 -07:00
Raphael Simon
0a0d6a1b2a
Add tests for regexp variables in query strings
...
Fix how regular expression gets built for query string so that order of parameters is always preserved
2014-05-26 20:20:14 -07:00
Raphael Simon
c9469524da
Fix old tests
...
Remove tests that don't apply anymore
Fix scheme matcher tests
2014-05-26 15:13:05 -07:00
Raphael Simon
65cc9b5df8
Add ability to capture variables in query strings
2014-05-26 15:01:42 -07:00
Kamil Kisiel
136d54f81f
Merge pull request #51 from ttencate/master
...
Make PathPrefix more polite towards StrictSlash setting, and add better tests for the latter
2014-05-05 06:44:26 -07:00
Quinn Slack
a883d5a9b9
Call parent BuildVarsFuncs
2014-04-23 11:44:16 -07:00
Quinn Slack
cef3b0cd6d
Add BuildVarsFunc to allow modifying route variables before generating a route's URL
2014-04-23 11:44:16 -07:00
Thomas ten Cate
b864f07c53
Propagate StrictSlash to subrouters instead of rudely turning it off
2014-04-23 19:53:35 +02:00
Thomas ten Cate
3509745ae8
Add tests for all four StrictSlash cases
2014-04-23 19:27:53 +02:00
Thomas ten Cate
bac1372129
Convert TestStrictSlash to a table driven test
2014-04-23 19:24:12 +02:00
Thomas ten Cate
033224c12e
Document behaviour of StrictSlash and PathPrefix better, and add tests to nail this down
2014-04-23 18:19:14 +02:00
Thomas ten Cate
525eff436e
Improve docs about leading and trailing slashes
2014-04-23 17:40:15 +02:00
Kamil Kisiel
270c42505a
Merge pull request #49 from sqs/gofmt
...
Apply gofmt
2014-04-19 10:20:04 +02:00
Quinn Slack
9ee70e572c
gofmt
2014-04-17 00:44:35 -07:00
Kamil Kisiel
9ede152210
Add go 1.2 to travis.yml
2013-12-04 23:18:22 -08:00
Kamil Kisiel
c4e0d8b371
Merge pull request #41 from pschlump/master
...
Fix to keep query string intact when 301 redirect occurs.
2013-11-30 14:10:54 -08:00
Kamil Kisiel
e807f7c338
Add Travis badge
2013-11-30 13:26:46 -08:00
Kamil Kisiel
3829d74241
Add travis.yml
2013-11-30 13:24:27 -08:00
Kamil Kisiel
db86729398
Merge pull request #43 from andrewsmedina/gofmt
...
go fmt.
2013-11-29 16:28:40 -08:00
Andrews Medina
cebebed6c4
go fmt.
...
result of `gofmt -s -w . `.
2013-11-29 22:23:25 -02:00
Philip Schlump
ab8ae247f1
Fixed the domain name copied from my other code to be example.com
2013-11-18 11:53:02 -07:00
Philip Schlump
6689ee8243
Cleaned up testing.
2013-11-18 10:54:45 -07:00
Philip Schlump
1a2411f44a
Added tests to verify that the 301 redirect returns query string
2013-11-18 10:14:28 -07:00
Philip Schlump
d10d5466f2
Fixed problem with droping query string.
2013-11-14 19:27:38 -07:00
Kamil Kisiel
42cbcc5a24
Merge pull request #38 from TheDude05/fix-doc-typo
...
Fix typo in documentation
2013-11-09 22:54:15 -08:00
Andrew Williams
9d99a92775
Remove extra parentheses
2013-11-09 22:22:06 -06:00
Kamil Kisiel
b08c5fcf14
Merge pull request #35 from JulienSchmidt/patch-1
...
Fix typo
2013-09-11 13:10:56 -07:00
Julien Schmidt
0ae6d35b08
Fix typo
...
remove doubly present "the"
2013-09-11 20:33:30 +02:00
Kamil Kisiel
ea1bb06e00
Merge pull request #33 from Crisfole/fixDocumentation
...
Add "of" like the rest of the function docstrings
2013-08-29 09:41:54 -07:00
Christopher Pfohl
04a79835ae
Add "of" like the rest of the function docstrings
2013-08-29 12:05:40 -04:00
John Nadratowski
e718e932ee
Add KeepContext flag to Router to disable clearing of context data.
2013-07-09 21:15:18 -07:00
rodrigo moraes
9b36453141
Update README.md
2013-04-08 09:01:04 -03:00
Kamil Kisiel
b9f42e6d55
Tweak example indent
2013-03-25 15:02:51 -07:00
Kamil Kisiel
36205eb8f1
Merge pull request #15 from yodaiken/master
...
Add example of a Matcher Func in documentation
2013-03-25 15:01:14 -07:00
Aaron Yodaiken
bb851ab75f
Add example MatcherFunc
2013-03-25 16:52:38 -05:00
rodrigo moraes
51a7bc30e9
Merge pull request #12 from temoto/patch-1
...
Removed excess bool variable assignment in `if`s
2013-02-03 01:13:21 -08:00
Sergey Shepelev
38545dbae8
Removed excess bool variable assignment in ifs
2013-02-03 06:48:19 +04:00
rodrigo moraes
2d12ebab42
Merge pull request #9 from golanger/master
...
Remove unnecessary comma
2013-01-17 01:15:30 -08:00
Jongmin Kim
78f6049258
Update mux.go
...
unnecessary comma
2013-01-17 17:52:41 +09:00
moraes
a8ad2b0f13
Now the real test for https://plus.google.com/101022900381697718949/posts/eWy6DjFJ6uW
2012-12-27 06:28:03 -02:00
moraes
b20a198901
Test for https://plus.google.com/101022900381697718949/posts/eWy6DjFJ6uW
2012-12-27 06:12:28 -02:00
rodrigo moraes
99a7fbf244
Merge pull request #3 from kisielk/test
...
Finished converting rest of mux tests to table tests
2012-10-16 11:26:53 -07:00
Kamil Kisiel
f89494aed1
Finished converting rest of mux tests to table tests
...
Separated the tests in to test functions depending on what they are
testing.
Moved some test-specific functiosn in to closures within the test
functions themselves.
2012-10-14 14:37:14 -07:00