# 使用 Homebrew, Nix 安装 go-rice

查看 go-rice 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

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

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

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

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

## 软件包事实

- **软件包键:** brew:go-rice
- **软件包管理器:** Homebrew
- **版本:** 1.0.3
- **来源摘要:** Easily embed resources like HTML, JS, CSS, images, and templates in Go
- **主页:** <https://github.com/GeertJohan/go.rice>
- **仓库:** <https://github.com/GeertJohan/go.rice>
- **最后更新:** 2026-07-27T16:47:24+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- rice (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.0.3
## 项目历史与用法

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

### 项目历史

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.

### 采用历史

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.

### 使用方式

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.

### 为什么软件包爱好者会关心

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.

### 时间线

- 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.

### 来源

- <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>


## 安全说明

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

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

## 其他软件包管理器记录

- 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)


## 来源

- 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
