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
0869df55
authored
2013-12-17 20:39:25 +0800
by
astaxie
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
delete GoToFunc & add GetControllerAndAction
1 parent
54c89c0d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
controller.go
controller.go
View file @
0869df5
...
...
@@ -412,11 +412,8 @@ func (c *Controller) XsrfFormHtml() string {
c
.
_xsrf_token
+
"
\"
/>"
}
func
(
c
*
Controller
)
GoToFunc
(
funcname
string
)
{
if
funcname
[
0
]
<
65
||
funcname
[
0
]
>
90
{
panic
(
"GoToFunc should exported function"
)
}
c
.
gotofunc
=
funcname
func
(
c
*
Controller
)
GetControllerAndAction
()
(
controllerName
,
actionName
string
)
{
return
c
.
controllerName
,
c
.
actionName
}
//utils func for controller internal
...
...
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