macOS
brew install go-statiklocal Homebrew formula metadata
sudo port install statikMacPorts ports tree · devel/statik/Portfile · source: api.github.com
brew
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
brew install go-statiklocal Homebrew formula metadata
sudo port install statikMacPorts ports tree · devel/statik/Portfile · source: api.github.com
nix profile install nixpkgs#statiknixpkgs package indexes · pkgs/by-name/st/statik/package.nix · source: api.github.com
overview
Embed files into a Go executable
history
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.
security posture
library-like package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
statik | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/rakyll/statik
install metadata
| Package key | brew:go-statik |
|---|---|
| Version | 0.1.8 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/go-statik |
| 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 |
| Build dependencies | go |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| 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 |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
statik
sudo port install statikstatik
nix profile install nixpkgs#statiksource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.