Go web 开发脚手架主要由下面几个第三方库集成,简单、灵活,可以快速开发 web 项目路由:github.com/gorilla/mux渲染模板:github.com/unrolled/renderCookie封装:github.com/gorilla/securecookie中间件:github.com/codegangsta/negroni上下文传输:github.com/gorilla/context文件结构
VOX
受大力启发的人类Golang网络框架。
入门
安装
使用go get力量:
$ go get -u github.com/aisk/vox
基本网络应用
package main
import (
" fmt "
" time "
" github.com/aisk/vox "
)
func main () {
app := vox.New ()
// custom middleware that add a x-response-time to the response