# Install go-rice with Homebrew, Nix

Easily embed resources like HTML, JS, CSS, images, and templates in Go. Version 1.0.3 via Homebrew; verified 2026-07-27. Also installable with nix: nix profile install nixpkgs#go-rice.

## Install

```sh
sudo av install brew:go-rice
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install go-rice
```

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#go-rice
```

  Evidence: nixpkgs package indexes: pkgs/by-name/go/go-rice/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:go-rice
- **Package manager:** Homebrew
- **Version:** 1.0.3
- **Source summary:** Easily embed resources like HTML, JS, CSS, images, and templates in Go
- **Homepage:** <https://github.com/GeertJohan/go.rice>
- **Repository:** <https://github.com/GeertJohan/go.rice>
- **Last updated:** 2026-07-27T16:47:24+02:00
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- rice (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 1.0.3
## Project history and usage

go.rice is a Go resource-embedding library and command-line tool for bundling web assets, templates, and other static files into Go programs.

### Project history

The public repository for go.rice was created in 2013 by GeertJohan, during the period when Go projects commonly used external generators to ship self-contained binaries with static assets. Its README describes a development/deployment split: during development it reads resources from disk, while the rice tool can embed generated Go source or append a zip payload to a built executable for deployment.

### Adoption history

go.rice became one of the named tools in the pre-embed era of Go asset packaging. The Go project's later embed design documents described the broader ecosystem problem as one with many tools that required a manual generation step, the same workflow category that go.rice served.

### How it is used

Practitioners use go.rice by declaring boxes such as rice.FindBox("html-files"), serving them through HTTP helpers, reading template strings, and running rice embed-go or rice append before distributing a standalone executable.

### Why package nerds care

The Homebrew formula matters because it exposes the rice executable as a small packaging-time helper for Go programs that predate or cannot yet use the standard //go:embed workflow.

### Timeline

- 2013: GitHub repository created for go.rice.
- 2021: Go 1.16 added standard static-file embedding through //go:embed, changing the ecosystem around tools such as go.rice.

### Related projects

- Related Go asset-embedding tools include statik and the standard library embed package introduced in Go 1.16.

### Sources

- <https://api.github.com/repos/GeertJohan/go.rice>
- <https://formulae.brew.sh/formula/go-rice>
- <https://github.com/GeertJohan/go.rice>
- <https://go.dev/doc/go1.16>
- <https://go.googlesource.com/proposal/+/master/design/draft-embed.md>


## Security Notes

broad file, network, media, or database tool signal.

- **Geiger risk:** blue / medium
- broad file, network, media, or database tool signal

## Other Package-Manager Records

- Nix - go-rice: normalized package name match | nixpkgs package indexes: pkgs/by-name/go/go-rice/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/go-rice.yml](https://github.com/mxcl/pkgdb/blob/main/combined/go-rice.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
