Skip to content

cold-bin/mini-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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/26

package 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("")
}

Releases

No releases published

Packages

No packages published

Languages