# 使用 Homebrew, Nix 安装 gotags

查看 gotags 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:gotags
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install gotags
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#gotags
```

  证据: nixpkgs package indexes: pkgs/by-name/go/gotags/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:gotags
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/gotags>
- **版本:** 1.4.1
- **来源摘要:** Tag generator for Go, compatible with ctags
- **主页:** <https://github.com/jstemmer/gotags>
- **仓库:** <https://github.com/jstemmer/gotags>
- **上游文档:** <https://github.com/jstemmer/gotags#readme>
- **许可证:** MIT
- **源码归档:** <https://github.com/jstemmer/gotags/archive/refs/tags/v1.4.1.tar.gz>
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- gotags (cli)
- gotags (别名)

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 1.4.1
- 本地数据: OK
- 上游仓库: https://github.com/jstemmer/gotags
- 检测到的最新版本: v1.4.1 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

gotags is a small Go command-line tool that emits ctags-compatible tag files for Go source code. Its role is intentionally narrow: make Go symbols available to editors and tag browsers that already understand the ctags format.

### 项目历史

The GitHub repository was created in March 2012, early in Go's public tooling era, and the v1.0.0 tag points at a March 2012 commit that updated the README and screenshot. The README describes gotags as a ctags-compatible tag generator for Go and documents editor-oriented flags such as recursive traversal, standard-output writing, and sorted tag output.

### 采用历史

Adoption appears to have been concentrated in editor workflows rather than broad application stacks. The README includes Vim Tagbar configuration and an Emacs integration through gotags-el, and Homebrew packages the tool as a standalone formula.

### 使用方式

Users run gotags over Go source files or directories and consume the generated tag file from editors. The tool is most useful in environments where ctags-style navigation remains part of the developer setup.

### 为什么软件包爱好者会关心

For package collectors, gotags is representative of the pre-language-server layer of Go editor tooling: tiny, single-purpose, and built to bridge Go code into older Unix editor conventions.

### 时间线

- 2012: Repository created and v1.0.0 tagged.
- 2017: v1.4.1 tag recorded with a version-string update.
- 2021: Repository activity includes commits through April 2021.

### Related projects

- ctags provides the tag-file convention that gotags targets.
- Vim Tagbar and gotags-el are editor-side consumers of gotags output.

### 来源

- <https://formulae.brew.sh/formula/gotags>
- <https://github.com/jstemmer/gotags>
- <https://github.com/jstemmer/gotags#readme>
- <https://github.com/jstemmer/gotags/tags>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** gotags
- **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:** head, stable

## 其他软件包管理器记录

- Nix - gotags: normalized package name match | nixpkgs package indexes: pkgs/by-name/go/gotags/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/zh-hans/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [go](https://www.automicvault.com/zh-hans/pkg/brew/go/) - Build dependency declared by Homebrew.
- [global](https://www.automicvault.com/zh-hans/pkg/brew/global/) - Shares av.db curated category or tags: cli, code-navigation, ctags, developer-tools.
- [rtags](https://www.automicvault.com/zh-hans/pkg/brew/rtags/) - Shares av.db curated category or tags: cli, code-navigation, developer-tools.
- [cscope](https://www.automicvault.com/zh-hans/pkg/brew/cscope/) - Shares av.db curated category or tags: cli, code-navigation, developer-tools.
- [gotests](https://www.automicvault.com/zh-hans/pkg/brew/gotests/) - Shares av.db curated category or tags: cli, developer-tools, go, golang.
- [gotestsum](https://www.automicvault.com/zh-hans/pkg/brew/gotestsum/) - Shares av.db curated category or tags: cli, developer-tools, go, golang.
- [gup](https://www.automicvault.com/zh-hans/pkg/brew/gup/) - Shares av.db curated category or tags: cli, developer-tools, go, golang.
- [gvp](https://www.automicvault.com/zh-hans/pkg/brew/gvp/) - Shares av.db curated category or tags: cli, developer-tools, go, golang.
- [aurora](https://www.automicvault.com/zh-hans/pkg/brew/aurora/) - Shares av.db curated category or tags: cli, developer-tools, go.
- [gomodifytags](https://www.automicvault.com/zh-hans/pkg/brew/gomodifytags/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, code, developer, developer-tools, editor.

## Combined YAML source

View the package source record on GitHub. [combined/gotags.yml](https://github.com/automic-vault/db/blob/main/combined/gotags.yml)


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
