# 使用 Homebrew, apk, apt, MacPorts, Nix, zypper 安装 go-bindata

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install go-bindata
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install go-bindata
```

  证据: MacPorts ports tree: devel/go-bindata/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add go-bindata
```

  证据: Alpine Linux edge package indexes: go-bindata from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install go-bindata
```

  证据: Debian stable package indexes: go-bindata from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

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

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

- zypper (92%):

```sh
sudo zypper install golang-github-jteeuwen-go-bindata
```

  证据: openSUSE Tumbleweed package metadata: golang-github-jteeuwen-go-bindata from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:go-bindata
- **软件包管理器:** Homebrew
- **版本:** 4.0.2
- **来源摘要:** Small utility that generates Go code from any file
- **主页:** <https://github.com/kevinburke/go-bindata>
- **仓库:** <https://github.com/kevinburke/go-bindata>
- **最后更新:** 2026-07-25T20:55:23-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- go-bindata (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

go-bindata is a Go code-generation utility for embedding files into Go programs. It belongs to an older pre-embed generation of Go asset tooling: developers ran a command over static assets, committed or built the generated Go file, and accessed assets through generated helper functions.

### 项目历史

The project lineage began with jteeuwen/go-bindata, whose README described conversion of arbitrary files into manageable Go source code. Kevin Burke's fork became the Homebrew-trusted version and documented maintenance changes such as atomic writes, SHA-256 hashes for embedded files, generated code formatting, size reporting, and safer file-mode handling.

### 采用历史

The tool spread through package-manager ecosystems because it solved a common deployment problem for Go services before Go added native file embedding. Homebrew, Debian-family packages, Nix, MacPorts, and other distributions carried go-bindata or its original jteeuwen package name, which made it a familiar build-time dependency for Go web services and single-binary CLIs.

### 使用方式

Practitioners use go-bindata by pointing the CLI at one or more directories, often with recursive `...` patterns, and then importing the generated `bindata.go` output into an application. The README highlights common production and development patterns: debug mode loads assets from disk during iteration, release mode embeds them into the binary, and flags such as `-o`, `-ignore`, `-prefix`, `-nocompress`, and `-nomemcopy` tune output shape and runtime tradeoffs.

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

For package maintainers, go-bindata is notable as a maintained fork of a once widely packaged Go asset tool. Its presence in Homebrew under Kevin Burke's fork records the practical packaging move from an older upstream identity to a maintained distribution target.

### 时间线

- 2016: Kevin Burke's fork was created on GitHub.
- 2017: The fork began publishing GitHub releases.
- 2023: v4 releases continued the module-era maintenance line.

### Related projects

- jteeuwen/go-bindata
- elazarl/go-bindata-assetfs
- Go embed package

### 来源

- <https://formulae.brew.sh/formula/go-bindata>
- <https://github.com/jteeuwen/go-bindata>
- <https://github.com/kevinburke/go-bindata>
- <https://github.com/kevinburke/go-bindata/releases>


## 安全说明

library-like package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- library-like package without higher-risk signals

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

- Debian apt - go-bindata - 3.0.7+git20151023.72.a0ff256-4+b16: normalized package name match | Debian stable package indexes: go-bindata from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | embed data in a Go program | https://github.com/jteeuwen/go-bindata
- Nix - go-bindata: normalized package name match | nixpkgs package indexes: pkgs/by-name/go/go-bindata/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - go-bindata - 3.0.7+git20151023.72.a0ff256-4build1: normalized package name match | Ubuntu 24.04 LTS package indexes: go-bindata from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | embed data in a Go program | https://github.com/jteeuwen/go-bindata
- apk - go-bindata - 3.1.3-r45: normalized package name match | Alpine Linux edge package indexes: go-bindata from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A small utility which generates Go code from any file | https://github.com/go-bindata/go-bindata
- zypper - golang-github-jteeuwen-go-bindata - 3.0.7+git20151023.72.a0ff256-5.26: normalized package name match | openSUSE Tumbleweed package metadata: golang-github-jteeuwen-go-bindata from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | A small utility which generates Go code from any file | https://github.com/jteeuwen/go-bindata
- MacPorts - go-bindata: normalized package name match | MacPorts ports tree: devel/go-bindata/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/go-bindata.yml](https://github.com/mxcl/pkgdb/blob/main/combined/go-bindata.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
