Golang之web框架简单介绍与对比

golang—-web框架简单介绍与对比

martini 框架

Golang之web框架简单介绍与对比_第1张图片

martini 功能列表

- 无侵入式的设计.
- 很好的与其他的Go语言包协同使用.
- 超赞的路径匹配和路由.
- 模块化的设计 - 容易插入功能件,也容易将其拔出来.
- 已有很多的中间件可以直接使用.
- 框架内已拥有很好的开箱即用的功能支持.
- 完全兼容http.HandlerFunc接口.

下载martini框架

    go get github.com/go-martini/martini

Beego 框架

Golang之web框架简单介绍与对比_第2张图片

    Beego是一个完全的MVC框架,你可以使用你的Go语言专业技术构建你的web应用程序。
    Beego框架下,你可以自动化地实现测试、打包和部署。正如下面所说的一样。
    web apps and backend services in Go. It is inspired by Tornado, Sinatra and Flask. beego has some Go-specific features such as interfaces and struct embedding.

下载Beego框架

    go get github.com/astaxie/beego

Revel 框架

Golang之web框架简单介绍与对比_第3张图片
A high-productivity web framework for the Go language.

Revel 功能列表

    1. Hot Code ReloadEdit, save, and refresh. Revel compiles your code and   templates for you, so you don't miss a beat. Code doesn't compile? It gives you a helpful description. Run-time code panic? Revel has you covered. 
    2. ComprehensiveRevel provides routing, parameter parsing, validation,   session/flash, templating, caching, job running, a testing framework, and even internationalization. 
    3. High PerformanceRevel builds on top of the Go HTTP server, which was recently   benchmarked to serve three to ten times as many requests as Rails across a variety of loads. 

下载Revel 框架

        git clone https://github.com/revel/examples.git $GOPATH/src/github.com/revel/examples
        revel run github.com/revel/examples/booking

Goji

Golang之web框架简单介绍与对比_第4张图片
Goji是一个轻量型的web框架,具有简约性和灵活性的多路路由请求特性,正如它所标榜自己的那样。

Goji的github项目地址

Gin

Golang之web框架简单介绍与对比_第5张图片
Gin类似于Martini,但是具备更好的性能。如果你喜欢高性能和高产出,你会喜欢上Gin.

Gin的github项目地址

你可能感兴趣的:(Golang,go语言,框架)