对GOPATH的配置
其实GOPATH可以使用多个路径 用来区别GOPATH的插件和开发 eg:/Users/Z/develop/gopath:/Users/Z/Dropbox/gopath
Beego的几个重要功能
new Creates a Beego application
run Run the application by starting a local development server
pack Compresses a Beego application into a single file
api Creates a Beego API application
beego路由类型
函数级别的注册 RESTFul (PAST,GET 。。。。)
controller级别的注册自动化映射
更加自动化的handler注册,即实现ServerHTTP(respost,request)函数都可以
基础路由
beego.Get(router,beego.FilterFunc)
beego.post(router,beego.FilterFunc)
beego.Put(router,beego.FilterFunc)
beego.Head(router,beego.FilterFunc)
beego.Option(router,beego.FilterFunc)
beego