You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
我想在r.mux上加一个下面这个方法
r := gin.Default()
// 配置静态文件路由
r.Static("/static", "./static")
Static方法 我应该在pkg/core.go下怎么加这个方法呢 我尝试了很多办法 最后都倒在了Cannot use 'm.engine.Static(relativePath, root)' (type "github.com/gin-gonic/gin".IRoutes) as the type "github.com/xinliangnote/go-gin-api/internal/pkg/core".IRoutes Type does not implement 'IRoutes' as some methods are missing: Any(string, ...HandlerFunc) 这个问题上
The text was updated successfully, but these errors were encountered:
我想在r.mux上加一个下面这个方法
r := gin.Default()
// 配置静态文件路由
r.Static("/static", "./static")
Static方法 我应该在pkg/core.go下怎么加这个方法呢 我尝试了很多办法 最后都倒在了Cannot use 'm.engine.Static(relativePath, root)' (type "github.com/gin-gonic/gin".IRoutes) as the type "github.com/xinliangnote/go-gin-api/internal/pkg/core".IRoutes Type does not implement 'IRoutes' as some methods are missing: Any(string, ...HandlerFunc) 这个问题上
The text was updated successfully, but these errors were encountered: