1
0
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:
Jianbo Feng
2014-12-17 15:52:48 +08:00
parent e65d87974a
commit e34f8479bb
3 changed files with 5 additions and 5 deletions

View File

@ -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 ""
}