beego Go 应用框架 beego

xuanbao2012-12-17 16:00:00 • 8818 次点击    
这是一个分享于 2012-12-17 16:00:00 的项目,其中的信息可能已经有所发展或是发生改变。

beego是一个用Go开发的应用框架,思路来自于tornado,路由设计来源于sinatra,支持如下特性

1. MVC

2. REST

3. 智能路由

4. 日志调试

5. 配置管理

6. 模板自动渲染

7. layout设计

8. 中间件插入逻辑

9. 方便的JSON/XML服务

官网 http://beego.me

快速入门代码如下所示:

package main

import (
    "github.com/astaxie/beego"
)

type MainController struct {
    beego.Controller
}

func (this *MainController) Get() {
    this.Ctx.WriteString("hello world")
}

func main() {
    beego.Router("/", &MainController{})
    beego.Run()
}

beego is an open-source, high-performance web framework for the Go programming language.Read More

Latest commit to the develop branch on 4-27-2022
Download as zip
授权协议:
Apache
开发语言:
Google Go 查看源码»
操作系统:
跨平台
8818 次点击  
加入收藏 微博
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传