mirror of
https://github.com/astaxie/beego.git
synced 2025-07-11 16:51:01 +00:00
Add all type support for UrlFor’s params
This commit is contained in:
@ -289,7 +289,7 @@ func (c *Controller) StopRun() {
|
||||
|
||||
// UrlFor does another controller handler in this request function.
|
||||
// it goes to this controller method if endpoint is not clear.
|
||||
func (c *Controller) UrlFor(endpoint string, values ...string) string {
|
||||
func (c *Controller) UrlFor(endpoint string, values ...interface{}) string {
|
||||
if len(endpoint) <= 0 {
|
||||
return ""
|
||||
}
|
||||
|
Reference in New Issue
Block a user