Skip to content

snadrus/gowebcompress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Coverage Status Donate

gowebcompress

Optimal GO web compression.

IN DEVELOPMENT:

  • Needs more testing

This repo provides the best web compression:

  • Dynamic & Static

They both provide Brotli & GZip with the best settings for each scenario.

Examples

http.ListenAndServe(":80", gowebcompress.Dynamic(http.DefaultRouter))

s := gowebcompress.NewStatic("./static")
// In Handler:
s.SendFile(r, w, r.URL.Path)

See Godoc for more options.

They're cross-compatible & will not share a file you haven't allowed into static or sent directly.

License: MIT. Use it anywhere.

I gladly accept your improvement patches.

About

Go http compression: br & gz, dynamic & static

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages