func main() {
beego.Router("/", &MainController{})
beego.Router("/userid/", &SqlController{})
beego.Run()
}
这个工作得很好网址“http://localhost:8080/userid” 但是如果我想用户的值id是动态的前“http://localhost:8080?userid=1” 我不能Ø如何实现这一目标使用路由器中去。Go或Beego支持动态网址路由,如id =?
nope这个我试过了...会产生分割违规恐慌 – gophervk
我使用大猩猩多路复用器和golang http包,它适用于我。 –