Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
张磊
/
FileStorageBeego
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
12a37f71
authored
2013-12-04 22:27:29 -0500
by
vadimi
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Fixed some typos
1 parent
9f3058ca
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
app.go
router.go
app.go
View file @
12a37f7
...
...
@@ -30,7 +30,7 @@ func (app *App) Run() {
addr
=
fmt
.
Sprintf
(
"%s:%d"
,
HttpAddr
,
HttpPort
)
}
BeeLogger
.
Info
(
"Runing on %s"
,
addr
)
BeeLogger
.
Info
(
"Run
n
ing on %s"
,
addr
)
var
(
err
error
...
...
router.go
View file @
12a37f7
...
...
@@ -155,7 +155,7 @@ func (p *ControllerRegistor) Add(pattern string, c ControllerInterface, mappingM
for
_
,
v
:=
range
semi
{
colon
:=
strings
.
Split
(
v
,
":"
)
if
len
(
colon
)
!=
2
{
panic
(
"method mapping fo
mate is error
"
)
panic
(
"method mapping fo
rmat is invalid
"
)
}
comma
:=
strings
.
Split
(
colon
[
0
],
","
)
for
_
,
m
:=
range
comma
{
...
...
@@ -163,10 +163,10 @@ func (p *ControllerRegistor) Add(pattern string, c ControllerInterface, mappingM
if
val
:=
reflectVal
.
MethodByName
(
colon
[
1
]);
val
.
IsValid
()
{
methods
[
strings
.
ToLower
(
m
)]
=
colon
[
1
]
}
else
{
panic
(
colon
[
1
]
+
" method don't exist in the controller "
+
t
.
Name
())
panic
(
colon
[
1
]
+
" method do
es
n't exist in the controller "
+
t
.
Name
())
}
}
else
{
panic
(
v
+
" is an
error method mapping,Don't exist method named
"
+
m
)
panic
(
v
+
" is an
invalid method mapping. Method doesn't exist
"
+
m
)
}
}
}
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment