# Install go-statik with Homebrew, MacPorts, Nix

Embed files into a Go executable. Version 0.1.8 via Homebrew; verified 2026-07-29. 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
- **Version:** 0.1.8
- **Source summary:** Embed files into a Go executable
- **Homepage:** <https://github.com/rakyll/statik>
- **Repository:** <https://github.com/rakyll/statik>
- **Last updated:** 2026-07-29T16:05:04+02:00
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- statik (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 0.1.8
## 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

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


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


## Sources

- 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
