Gzip 中間件由 NYTimes/gziphandler 提供。

    1. import (
    2. "github.com/clevergo/clevergo"
    3. "github.com/NYTimes/gziphandler"
    4. )
    1. router.Use(clevergo.WrapHH(gziphandler.GzipHandler))