stuffbin - Compress and embed static files and assets into Go binaries and access them with a virtual file system in production
stuffbin is a utility + package to compress and embed static files and assets into Go binaries for distribution. It supports falling back to the local file system when no embedded assets are available, for instance, in development mode. stuffbin is inspired by zgok but is much cleaner and leaner.
Go 1.16 introduced the //go:embed directive that allows embedding of files into Go binaries without any external utilities. stuffbin offers a few key advantages over native embedding in its current form. It compress all files, Dynamically embed files instead of static //go:embed directives, Custom path aliases and lot more.
Go 1.16 introduced the //go:embed directive that allows embedding of files into Go binaries without any external utilities. stuffbin offers a few key advantages over native embedding in its current form. It compress all files, Dynamically embed files instead of static //go:embed directives, Custom path aliases and lot more.
https://github.com/knadh/stuffbin
License:
Tech:
Tags: