Created
February 19, 2014 08:55
-
-
Save jnriver/9088350 to your computer and use it in GitHub Desktop.
beego中获取 GET 方法下的 URL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package controllers | |
import ( | |
"fmt" | |
"github.com/astaxie/beego" | |
) | |
type MainController struct { | |
beego.Controller | |
} | |
func (this *MainController) Get() { | |
fmt.Println(this.Ctx.Request.URL) | |
this.Ctx.WriteString("Hello world!") | |
return | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
这部分在文档哪里来着?我又找不到了,话说这个文档还是太简陋