gin-contrib / gzip

Gin middleware to enable GZIP support.
MIT License
331 stars 87 forks source link

gzip.WithExcludedPaths missing since last merge #35

Open er-himanshujain opened 4 years ago

er-himanshujain commented 4 years ago

Hi, is there any alternative to add below statement? r.Use(gzip.Gzip(gzip.DefaultCompression, gzip.WithExcludedPaths([]string{"/admin/", "/monitor/"})))

Since today, when I am trying to build, below issues occurred:

  1. Unable to fetch through dep ensure for master branch, getting below error: Solving failure: No versions of github.com/gin-contrib/gzip met constraints: v0.0.1: Could not introduce github.com/gin-contrib/gzip@v0.0.1, as it is not allowed by constraint master from project dailyhunt.in/ugc/groups-service. master: unable to update checked out version: fatal: reference is not a tree: 4b4a6f08e9f0d72c90f9947deaa1cb1ef17c39d6 : command failed: [git checkout 4b4a6f08e9f0d72c90f9947deaa1cb1ef17c39d6]: exit status 128

  2. After resolving through go get, got below compilation error: r.Use(gzip.Gzip(gzip.DefaultCompression, gzip.WithExcludedPaths([]string{"/admin/", "/monitor/"})))

too many arguments in call to gzip.Gzip undefined: gzip.WithExcludedPaths

hyingreborn commented 4 years ago

I had the same problem...

@appleboy Can you release a new tag,v0.0.2 ? This package in my local miss the handler.go and options.go