go-rice
« Back to VersTracker
Description:
Easily embed resources like HTML, JS, CSS, images, and templates in Go
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: go embedding web-development assets static-files
Install: brew install go-rice
About:
GoRice is a Go package that provides a simple API for embedding static resources such as HTML templates, JavaScript, CSS, and images directly into your Go application binary. It allows you to treat these files as if they were on disk, while also supporting the `go get` workflow for easy distribution. This tool simplifies deployment by removing external file dependencies.
Key Features:
  • Embeds HTML, JS, CSS, and image files into Go binaries
  • Supports both embedded resources and reading from disk for development
  • Compatible with the standard `go get` command
  • Provides an `http.FileServer` compatible interface
Use Cases:
  • Distributing single-file Go web applications
  • Packaging command-line tools with embedded templates or assets
  • Simplifying deployment of web services by removing static file dependencies
Alternatives:
  • packr – Packr is a similar tool but often requires a separate CLI step, whereas go.rice focuses on standard Go tooling.
  • go:embed – The standard library `embed` package (Go 1.16+) offers native embedding, making external tools like go.rice less necessary for new projects.
Version History
Detected Version Rev Change Commit
Sep 11, 2025 12:01pm 0 VERSION_BUMP 2cff65d6