Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
beego
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
beego
Commits
b16ef12a
Commit
b16ef12a
authored
Nov 26, 2013
by
astaxie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix test
parent
f9e732b5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
filter.go
filter.go
+1
-0
router_test.go
router_test.go
+1
-1
No files found.
filter.go
View file @
b16ef12a
...
@@ -9,6 +9,7 @@ type FilterRouter struct {
...
@@ -9,6 +9,7 @@ type FilterRouter struct {
regex
*
regexp
.
Regexp
regex
*
regexp
.
Regexp
filterFunc
FilterFunc
filterFunc
FilterFunc
hasregex
bool
hasregex
bool
params
map
[
int
]
string
}
}
func
(
mr
*
FilterRouter
)
ValidRouter
(
router
string
)
bool
{
func
(
mr
*
FilterRouter
)
ValidRouter
(
router
string
)
bool
{
...
...
router_test.go
View file @
b16ef12a
...
@@ -20,7 +20,7 @@ func (this *TestController) List() {
...
@@ -20,7 +20,7 @@ func (this *TestController) List() {
}
}
func
(
this
*
TestController
)
Myext
()
{
func
(
this
*
TestController
)
Myext
()
{
this
.
Ctx
.
Output
.
Body
([]
byte
(
this
.
Ctx
.
Input
.
Param
s
(
":ext"
)))
this
.
Ctx
.
Output
.
Body
([]
byte
(
this
.
Ctx
.
Input
.
Param
(
":ext"
)))
}
}
func
(
this
*
TestController
)
GetUrl
()
{
func
(
this
*
TestController
)
GetUrl
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment