stuffbin

Compress and embed static files and assets into Go binaries

brewmacoslinux
Try with needOr install directly
Source

About

Compress and embed static files and assets into Go binaries

Commands

stuffbin

Examples

Embed all files from a directory into a Go binary$ stuffbin -o output.go -pkg main path/to/files
Create a compressed bundle with custom output package$ stuffbin -o assets.go -pkg assets ./static ./templates
Generate Go code with specific compression settings$ stuffbin -o embedded.go -pkg myapp -compress gzip ./data