Go語言Web框架:beego
beego是一個用Go開發的應用框架,思路來自于tornado,路由設計來源于sinatra,支持如下特性
- MVC
- REST
- 智能路由
- 日志調試
- 配置管理
- 模板自動渲染
- layout設計
- 中間件插入邏輯
- 方便的JSON/XML服務 </ol>
快速入門代碼如下所示:
package mainimport ( "github.com/astaxie/beego" )
type MainController struct { beego.Controller }
func (this *MainController) Get() { this.Ct.WriteString("hello world") }
func main() { beego.RegisterController("/", &MainController{}) beego.Run() }</pre>
https://github.com/astaxie/beego
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!