dotweb
dotweb copied to clipboard
Simple and easy go web micro framework
Signed-off-by: Abirdcfly
test.go ``` package main import ( "github.com/devfeel/dotweb" ) func main() { dotapp := dotweb.New() dotapp.HttpServer.GET("/hello/:name", func(ctx dotweb.Context) error{ return ctx.WriteString("hello " + ctx.GetRouterName("name")) }) dotapp.StartServer(80) } ``` $ curl http://localhost/hello/xx/...
I hope there is no documentation。 This will make the novice less conversational。 Although I am a rookie。 😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊
希望组路由支持SetNotFoundHandle,优先于APP的SetNotFoundHandle。 这样可以根据不同的组路由分别处理404错误。
2019年新年快乐,感谢一路以来大家对dotweb的支持! 准备一份小礼物,大家可以在这个issue评论,新年之时抽取三位幸运者赠送dotweb千星纪念杯一份。 新年抽奖程序已备好,请大家review: https://github.com/devfeel/dotweb-how-to/blob/master/lucky/main.go 从github获取用户名单和评论代码: https://github.com/devfeel/dotweb-how-to/blob/master/lucky/queryuser/main.go
祝dotweb越来越好, 希望go语言越来越好~
希望增加一种路由注册方法指定:有且只有GET/POST方法 比如/upload路由,在GET时返回上传页面,在POST时进行上传动作。除此之外不允许其他方法。