# README
Gil, 一个 Golang 实现的 Web 框架
功能亮点
1)GET、POST 方法用于设置 handler 处理的请求的方法
2)Next()、Abort()、Set()、Get() 方法用于管理上下文
3)支持中间件
4)支持分组路由
5)支持动态路由
6)支持 URL 参数查询
7)支持表单处理
简单例子
import "github.com/RGBli/gil"
func main() {
engine := gil.New()
engine.GET("/", func(c *Gil.Context) {
c.String("Hello gil")
})
engine.Run(":8080")
}
技术
1)Golang 1.15
2)使用前缀树实现动态路由
3)单元测试
参考文章
https://github.com/geektutu/7days-golang/tree/master/gee-web
# Packages
No description provided by the author
# Functions
New 是 Engine 的构造函数.
# Structs
Context 封装了请求和响应中的信息.
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author
HandlerFunc 定义了 gil 框架的 handler 函数.
No description provided by the author