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
7760d247
Commit
7760d247
authored
Aug 17, 2016
by
astaxie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix the typo
parent
3672f96a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
yaml.go
config/yaml/yaml.go
+1
-1
router.go
router.go
+1
-1
No files found.
config/yaml/yaml.go
View file @
7760d247
...
...
@@ -281,7 +281,7 @@ func (c *ConfigContainer) DIY(key string) (v interface{}, err error) {
func
(
c
*
ConfigContainer
)
getData
(
key
string
)
(
interface
{},
error
)
{
if
len
(
key
)
==
0
{
return
nil
,
errors
.
New
(
"key is em
tp
y"
)
return
nil
,
errors
.
New
(
"key is em
pt
y"
)
}
if
v
,
ok
:=
c
.
data
[
key
];
ok
{
...
...
router.go
View file @
7760d247
...
...
@@ -434,7 +434,7 @@ func (p *ControllerRegister) InsertFilter(pattern string, pos int, filter Filter
// add Filter into
func
(
p
*
ControllerRegister
)
insertFilterRouter
(
pos
int
,
mr
*
FilterRouter
)
(
err
error
)
{
if
pos
<
BeforeStatic
||
pos
>
FinishRouter
{
err
=
fmt
.
Errorf
(
"can not find your filter postion"
)
err
=
fmt
.
Errorf
(
"can not find your filter pos
i
tion"
)
return
}
p
.
enableFilter
=
true
...
...
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