macOS
brew install gomplatelocal Homebrew formula metadata
sudo port install gomplateMacPorts ports tree · textproc/gomplate/Portfile · 来源: api.github.com
安装
brew install gomplatelocal Homebrew formula metadata
sudo port install gomplateMacPorts ports tree · textproc/gomplate/Portfile · 来源: api.github.com
sudo apk add gomplateAlpine Linux edge package indexes · gomplate · 来源: dl-cdn.alpinelinux.org
nix profile install nixpkgs#gomplatenixpkgs package indexes · pkgs/by-name/go/gomplate/package.nix · 来源: api.github.com
scoop install main/gomplateScoop official bucket manifest trees · bucket/gomplate.json · 来源: api.github.com
概览
Command-line Golang template processor
历史
gomplate is a Go-based command-line template renderer built around Go templates, rich template functions, and local or remote datasources. It matters in package-manager culture because it gives shell scripts, containers, and deployment workflows a single static-style executable for rendering configuration from files, environment variables, HTTP endpoints, cloud metadata, Consul, Vault, and other sources.
The public GitHub repository was created in January 2016 by Dave Henderson. The README describes gomplate as a template renderer with datasources such as JSON, encrypted JSON, YAML, AWS EC2 metadata, HashiCorp Consul, and HashiCorp Vault secrets, while the documentation frames datasources as central to rendering templates from external data.
gomplate grew beyond simple environment substitution into a broad template-processing utility. The official docs cover command-line rendering from stdin, files, inline templates, directories, output maps, plugins, datasource headers, context data, and a large function library layered on top of Go's text/template syntax.
The changelog shows continued expansion through the 5.x series, including datasource work, crypto and environment functions, and JSON Schema support for .gomplate.yaml configuration in the 5.1.0 release notes dated April 2026.
The README advertises GitHub release downloads, installation documentation, Docker Hub images, Chocolatey packaging, GitHub Discussions, and a Gophers Slack channel. The batch package metadata also records packaging in Homebrew, Alpine, MacPorts, Nix, and Scoop, showing the tool's cross-platform packaging footprint.
gomplate's adoption tracks the rise of configuration-as-code workflows: it is small enough to run in a container entrypoint, CI job, or shell pipeline, while being featureful enough to replace piles of sed, envsubst, jq, and custom scripts when templates need structured data.
At its simplest, gomplate reads a template from stdin and writes rendered output to stdout. The docs and README show examples using environment variables, inline expressions, file datasources, stdin datasources, HTTP datasources, and multiple named datasources.
For larger workflows, users define inputs, outputs, datasources, contexts, templates, and plugins with command-line flags or .gomplate.yaml. The default config filename is .gomplate.yaml, and the GOMPLATE_CONFIG environment variable or --config flag can point elsewhere or disable config loading.
The datasource system is the distinguishing feature: gomplate can fetch structured data from files, env, HTTP, Git, S3, Google Cloud Storage, AWS Parameter Store and Secrets Manager, Consul, Vault, merge datasources, and more, then feed that data into Go templates.
Package nerds care about gomplate because it packages an entire configuration-rendering pattern as a single CLI. It is more capable than envsubst but lighter to deploy than a full configuration-management framework, so it fits Docker images, CI pipelines, and Unix package collections well.
It also demonstrates a common Go CLI success pattern: one binary, extensive cross-platform release assets, docs-first distribution, Docker images, and package-manager entries across macOS, Linux, and Windows ecosystems.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
./.gomplate.yaml可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
gomplate | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:gomplate |
|---|---|
| 版本 | 5.2.0 |
| 软件包管理器 | Homebrew |
| 主页 | https://gomplate.ca/ |
| 仓库 | https://github.com/hairyhenderson/gomplate |
| 最后更新 | 2026-07-12T20:47:02Z |
| Pulse | updated |
| Bottle | 未记录 |
| 服务 | 未声明 |
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
gomplate
nix profile install nixpkgs#gomplategomplate 5.2.0-r1
A versatile Go template processor
https://github.com/hairyhenderson/gomplate
sudo apk add gomplategomplate
sudo port install gomplatemain/gomplate
scoop install main/gomplate来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.