Beego框架
1、安装Beego 1、Go 第三方包 go-sqlite3 参考: https://my.oschina.net/Obahua/blog/129689 Mac OS X 通过 Homebrewn 安装: brew install pkgconfig brew install sqlite3 参考: https://github.com/Unknwon/go-web-foundation/blob/v1/lectures/lecture1/lecture1.md https://github.com/astaxie/beego go get github.com/astaxie/beego 2、Beego 运行hello world package main import( "github.com/astaxie/beego" ) type HomeController struct { beego.Controller } func (this *HomeController) Get(){ this.Ctx.WriteString("hello world") } func main() { beego.Router("/",&HomeController{}) beego.Run() } $go run test.go 2018/07/18 10:59:09.731 [I]