# Install go-statik with Homebrew, MacPorts, Nix

Embed files into a Go executable. Version 0.1.8 via Homebrew; verified from local package data. Also installable with macports: sudo port install statik.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

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

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install statik
```

  Evidence: 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
```

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

## Package facts

- **Package key:** brew:go-statik
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/go-statik>
- **Version:** 0.1.8
- **Source summary:** Embed files into a Go executable
- **Homepage:** <https://github.com/rakyll/statik>
- **Repository:** <https://github.com/rakyll/statik>
- **Upstream docs:** <https://github.com/rakyll/statik#readme>
- **License:** Apache-2.0
- **Source archive:** <https://github.com/rakyll/statik/archive/refs/tags/v0.1.8.tar.gz>
- **Generated:** 2026-07-25T07:20:51+00:00

## Executables

- statik (cli)
- statik (alias)

## Build dependencies

- go

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-25
- Package-manager version: 0.1.8
- Local data: ok
- Upstream repository: https://github.com/rakyll/statik
- Upstream latest detected: v0.1.8 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

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

### Sources

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


## Security Notes

library-like package without higher-risk signals.

- **Geiger risk:** green / low
- library-like package without higher-risk signals

## Source Database Details

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

## Other Package-Manager Records

- 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


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [go](https://www.automicvault.com/pkg/brew/go/) - Build dependency declared by Homebrew.
- [go-rice](https://www.automicvault.com/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/pkg/brew/go-bindata/) - Shares av.db curated category or tags: asset-embedding, cli, developer-tools, go.
- [addlicense](https://www.automicvault.com/pkg/brew/addlicense/) - Shares av.db curated category or tags: cli, developer-tools, go.
- [ali](https://www.automicvault.com/pkg/brew/ali/) - Shares av.db curated category or tags: cli, developer-tools, go.
- [anycable-go](https://www.automicvault.com/pkg/brew/anycable-go/) - Shares av.db curated category or tags: cli, developer-tools, go.
- [asc](https://www.automicvault.com/pkg/brew/asc/) - Shares av.db curated category or tags: cli, developer-tools, go.
- [asmfmt](https://www.automicvault.com/pkg/brew/asmfmt/) - Shares av.db curated category or tags: cli, developer-tools, go.
- [aurora](https://www.automicvault.com/pkg/brew/aurora/) - Shares av.db curated category or tags: cli, developer-tools, go.
- [stuffbin](https://www.automicvault.com/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)


## Sources

- 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
