Skip to content

Repository files navigation

mini-web

web框架,参考gee框架

function

  • 上下文
  • 前缀树路由
  • 分组路由
  • 中间件
  • 模板恢复
  • 错误处理

go version

go 1.17+

start

go get -u github.com/cold-bin/mini-web

使用示例

// @author cold bin// @date 2022/7/26package main
import (
app "github.com/cold-bin/mini-web"
)
funcmain() {
engine:=app.New()
engine.GET("/hello1", func(c*app.Context) {
c.JSON(200, "hello 1")
})
engine.Run("")
}

About

go web框架

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages