macOS
brew install gomodifytagslocal Homebrew formula metadata
安装
brew install gomodifytagslocal Homebrew formula metadata
nix profile install nixpkgs#gomodifytagsnixpkgs package indexes · pkgs/by-name/go/gomodifytags/package.nix · 来源: api.github.com
概览
Go tool to modify struct field tags
历史
gomodifytags is a Go developer tool for adding, updating, removing, and formatting struct field tags. Its importance is editor workflow: it automates a repetitive Go refactoring task that otherwise invites typo-prone manual edits.
The repository was created in January 2017 by Fatih Arslan. The README describes a focused command that modifies tags in Go structs by file, struct, field, line, offset, or all structs, with dry-run output by default and a write flag for in-place edits.
The tool was designed for editor integration as much as terminal use. The README lists vim-go, Atom go-plus, vscode-go, Acme integration, emacs-go-tag, and TextMate2 support, which explains why a small CLI became widely known in the Go editing ecosystem.
GitHub release pages show a 1.x release series, including v1.17.0 in July 2024. Homebrew and Nix package metadata in the batch input show the tool being distributed outside go install, which is useful for editor plugin dependencies and reproducible workstation setup.
The GitHub repository metadata showed thousands of stars by June 2026, consistent with a mature, editor-adjacent Go utility rather than a large standalone application.
Typical usage points gomodifytags at a Go source file and identifies the fields to change using -struct, -field, -line, -offset, or -all. Users then add or remove tag keys and options such as json, xml, omitempty, validation tags, or custom value templates.
Because it prints changes unless -w is supplied, the CLI works well as both a terminal tool and a backend for editors that preview or apply edits at the cursor.
gomodifytags is package-nerd catnip because it turns a language convention, Go struct tags, into a stable external executable that editors can share. That keeps editor plugins thin and lets package managers ship one implementation of the tag-rewriting logic.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
gomodifytags | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/fatih/gomodifytags
安装元数据
| 软件包键 | brew:gomodifytags |
|---|---|
| 版本 | 1.17.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/gomodifytags |
| 主页 | https://github.com/fatih/gomodifytags |
| 仓库 | https://github.com/fatih/gomodifytags |
| 上游文档 | https://github.com/fatih/gomodifytags#readme |
| 许可证 | BSD-3-Clause |
| 源码归档 | https://github.com/fatih/gomodifytags/archive/refs/tags/v1.17.0.tar.gz |
| 构建依赖 | go |
| Bottle | 可用 (于 arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, monterey, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | gomodifytags |
| 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 软件包链接分开显示。
gomodifytags
nix profile install nixpkgs#gomodifytags来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.