modulepackage
0.0.0-20160304035037-ea8e4927b3a6
Repository: https://github.com/turtlemonvh/gin-wraphh.git
Documentation: pkg.go.dev
# README
WrapHH

Use this to wrap middleware that accepts and returns http.Handler
objects for use in gin.
Created to look like these helper methods in gin:
Examples
See the test code. I have examples wrapping the NYT gzip library and NoSurf, a popular CSRF protection middleware for golang.
About
Based on this gist: https://gist.github.com/turtlemonvh/6cd23ef13e1e290717ef
License
MIT
# Functions
Wrap something that accepts an http.Handler, returns an http.Handler.