gin-contrib / cache

Gin middleware/handler to enable Cache
https://gin-gonic.github.io/gin
MIT License
378 stars 96 forks source link

Can't use dep #33

Closed toughrogrammer closed 6 years ago

toughrogrammer commented 6 years ago

When I install this package with dep, error is thrown.

./main.go:20:39: cannot use "${my-package-path}/vendor/github.com/gin-contrib/cache".CachePage(store, 60 * time.Second, func literal) (type "${my-package-path}/vendor/gopkg.in/gin-gonic/gin.v1".HandlerFunc) as type "${my-package-path}/vendor/github.com/gin-gonic/gin".HandlerFunc in argument to router.RouterGroup.GET
./main.go:20:65: cannot use func literal (type func(*"${my-package-path}/vendor/github.com/gin-gonic/gin".Context)) as type "${my-package-path}/vendor/gopkg.in/gin-gonic/gin.v1".HandlerFunc in argument to "${my-package-path}/vendor/github.com/gin-contrib/cache".CachePage