gorest
gorest copied to clipboard
a restful framework with go
Results
4
gorest issues
Sort by
recently updated
recently updated
newest added
看了下源码发现wrapper.go里面有定义HttpResponse struct,方法WriteString调用时使用了io.WriteString方法,但是该方法要求传入的是writter接口,本身HttpResponse struct并未实现writter接口吧,那怎么可以传入呢?(只是匿名内嵌了个http.ResponseWriter接口),楼主能具体讲下struct匿名内嵌interface吗
如题 代码上是:[a-zA-Z1-9]
同url可包含多个方法路由