# 使用 Homebrew, MacPorts, Nix 安装 go-statik

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install go-statik
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install statik
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#statik
```

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

## 软件包事实

- **软件包键:** brew:go-statik
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/go-statik>
- **版本:** 0.1.8
- **来源摘要:** Embed files into a Go executable
- **主页:** <https://github.com/rakyll/statik>
- **仓库:** <https://github.com/rakyll/statik>
- **上游文档:** <https://github.com/rakyll/statik#readme>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/rakyll/statik/archive/refs/tags/v0.1.8.tar.gz>
- **已生成:** 2026-07-25T07:20:51+00:00

## 可执行文件

- statik (cli)
- statik (别名)

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-07-25
- 管理器版本: 0.1.8
- 本地数据: OK
- 上游仓库: https://github.com/rakyll/statik
- 检测到的最新版本: v0.1.8 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

statik is a Go command-line tool and library for embedding a directory of static files into a Go executable and serving them through an http.FileSystem.

### 项目历史

The statik repository was created in 2014 by rakyll. Its README says the idea and implementation were taken from Camlistore and split out because the author needed the pattern across multiple projects.

### 采用历史

statik became part of the pre-Go-1.16 static-asset embedding ecosystem, especially for Go services with a small web component that wanted a single binary instead of separate CSS, JavaScript, image, or HTML deployment steps.

### 使用方式

Practitioners run statik against a public directory, import the generated statik package for side effects, initialize the statik filesystem, and pass it to http.FileServer or open individual embedded files.

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

The package remains a concise example of the generated-source approach that the Go 1.16 embed feature later made part of the standard toolchain.

### 时间线

- 2014: GitHub repository created for statik.
- 2021: Go 1.16 added standard static-file embedding through //go:embed.

### Related projects

- statik is related to Camlistore, go.rice, and the Go standard library embed package.

### 来源

- <https://api.github.com/repos/rakyll/statik>
- <https://formulae.brew.sh/formula/go-statik>
- <https://github.com/rakyll/statik>
- <https://go.dev/doc/go1.16>


## 安全说明

library-like package without higher-risk signals.

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

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** go-statik
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

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

- MacPorts - statik: installed executable or alias match | MacPorts ports tree: devel/statik/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Nix - statik: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/st/statik/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/zh-hans/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [go](https://www.automicvault.com/zh-hans/pkg/brew/go/) - Build dependency declared by Homebrew.
- [go-rice](https://www.automicvault.com/zh-hans/pkg/brew/go-rice/) - Shares av.db curated category or tags: asset-embedding, cli, developer-tools, go, static-files.
- [go-bindata](https://www.automicvault.com/zh-hans/pkg/brew/go-bindata/) - Shares av.db curated category or tags: asset-embedding, cli, developer-tools, go.
- [addlicense](https://www.automicvault.com/zh-hans/pkg/brew/addlicense/) - Shares av.db curated category or tags: cli, developer-tools, go.
- [ali](https://www.automicvault.com/zh-hans/pkg/brew/ali/) - Shares av.db curated category or tags: cli, developer-tools, go.
- [anycable-go](https://www.automicvault.com/zh-hans/pkg/brew/anycable-go/) - Shares av.db curated category or tags: cli, developer-tools, go.
- [asc](https://www.automicvault.com/zh-hans/pkg/brew/asc/) - Shares av.db curated category or tags: cli, developer-tools, go.
- [asmfmt](https://www.automicvault.com/zh-hans/pkg/brew/asmfmt/) - Shares av.db curated category or tags: cli, developer-tools, go.
- [aurora](https://www.automicvault.com/zh-hans/pkg/brew/aurora/) - Shares av.db curated category or tags: cli, developer-tools, go.
- [stuffbin](https://www.automicvault.com/zh-hans/pkg/brew/stuffbin/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, embed, embedding.

## Combined YAML source

View the package source record on GitHub. [combined/go-statik.yml](https://github.com/automic-vault/db/blob/main/combined/go-statik.yml)


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
