macOS
brew install go-statiklocal Homebrew formula metadata
sudo port install statikMacPorts ports tree · devel/statik/Portfile · 来源: api.github.com
安装
brew install go-statiklocal Homebrew formula metadata
sudo port install statikMacPorts ports tree · devel/statik/Portfile · 来源: api.github.com
nix profile install nixpkgs#statiknixpkgs package indexes · pkgs/by-name/st/statik/package.nix · 来源: api.github.com
概览
Embed files into a Go executable
历史
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.
安全态势
library-like package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
statik | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/rakyll/statik
安装元数据
| 软件包键 | brew:go-statik |
|---|---|
| 版本 | 0.1.8 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/go-statik |
| 主页 | 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 |
| 构建依赖 | go |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
statik
sudo port install statikstatik
nix profile install nixpkgs#statik来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.