Categorygithub.com/golangee/bundle
repositorypackage
0.0.0-20200528093052-9de4cb814e02
Repository: https://github.com/golangee/bundle.git
Documentation: pkg.go.dev

# README

bundle GoDoc

is a workaround until 35950 is resolved. bundle embedds files, using a few wanted optimizations, and there is no other which supports this out of the box:

  • give direct access to (cached) uncompressed, brotli and gzip streams
  • optionally cache variants in memory (e.g. for web servers)
  • uses one of the most efficient codecs (brotli), which compresses 14-21% better than gzip at comparable decompression speed
  • uses base85 instead base64 to reduce embedding and parsing overhead from 33% to 25%. It is unclear if using base-122 would be a good choice. The resulting go-file has only around 21% overhead, if compressing again with bzip.
  • optimized http handler which uses etags and no-cache headers and optimized in-memory caches of compression variants
  • customizable resources at runtime
  • only regenerates source code, if files have changed. Perfect for go generate.

alternatives

there are so many...