gzip
gzip copied to clipboard
gzip.WithExcludedPaths missing since last merge
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:
-
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 -
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
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