gzip icon indicating copy to clipboard operation
gzip copied to clipboard

gzip.WithExcludedPaths missing since last merge

Open er-himanshujain opened this issue 5 years ago • 1 comments

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/[email protected], 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

er-himanshujain avatar Nov 18 '19 08:11 er-himanshujain

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

hyingreborn avatar Jan 23 '20 05:01 hyingreborn