Broccoli
Visit ToolBroccoli is an open-source coding and development tool that uses Brotli compression to embed static files in Go executables. It reduces binary size and supports bundling multiple source directories.
At a glance
Trending
Broccoli is an open-source coding and development tool that uses Brotli compression to embed static files in Go executables. It reduces binary size and supports bundling multiple source directories.
Trending
About
Broccoli is an open-source tool designed for Go developers to embed static files within their executables using Brotli compression. This method offers a significant advantage over alternatives like gzip, resulting in 13-25% smaller binary sizes. It supports bundling multiple source directories and operates via the `go generate` command-line interface, eliminating the need for configuration files. A key feature is optional decompression, where files are only decompressed upon their first read, optimizing performance. Broccoli also stands out for its compatibility with wasm/js architecture, a common limitation for other embedding libraries. It includes a `.gitignore` option to respect existing ignore rules, streamlining development workflows. The tool provides various options for source directories, output file names, variable names, and inclusion/exclusion wildcards, along with adjustable Brotli compression levels.
Capabilities
Pricing & Plans
Open Source
Free
FAQs
Trending