Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cold-bin/mini-web
go web框架
https://github.com/cold-bin/mini-web
golang webframe
Last synced: 3 days ago
JSON representation
go web框架
- Host: GitHub
- URL: https://github.com/cold-bin/mini-web
- Owner: cold-bin
- Created: 2022-07-26T07:19:01.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-07-27T06:40:34.000Z (over 2 years ago)
- Last Synced: 2024-06-20T03:25:43.343Z (5 months ago)
- Topics: golang, webframe
- Language: Go
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mini-web
web框架,参考gee框架
### function
- [x] 上下文
- [x] 前缀树路由
- [x] 分组路由
- [x] 中间件
- [x] 模板恢复
- [x] 错误处理### go version
> go 1.17+
### start
```shell
go get -u github.com/cold-bin/mini-web
```### 使用示例
```go
// @author cold bin
// @date 2022/7/26package main
import (
app "github.com/cold-bin/mini-web"
)func main() {
engine := app.New()
engine.GET("/hello1", func(c *app.Context) {
c.JSON(200, "hello 1")
})
engine.Run("")
}```