# 使用 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
- **版本:** 0.1.8
- **来源摘要:** Embed files into a Go executable
- **主页:** <https://github.com/rakyll/statik>
- **仓库:** <https://github.com/rakyll/statik>
- **最后更新:** 2026-07-29T16:05:04+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- statik (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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

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

- 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


## Combined YAML source

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