# 安装 goimports

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

## 安装

```sh
sudo av install brew:goimports
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install goimports
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:goimports
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/goimports>
- **版本:** 0.45.0
- **来源摘要:** Go formatter that additionally inserts import statements
- **主页:** <https://pkg.go.dev/golang.org/x/tools/cmd/goimports>
- **仓库:** <https://github.com/golang/tools>
- **上游文档:** <https://pkg.go.dev/golang.org/x/tools/cmd/goimports>
- **许可证:** BSD-3-Clause
- **源码归档:** <https://github.com/golang/tools/archive/refs/tags/v0.45.0.tar.gz>
- **更新:** 2026-05-09T00:55:47Z
- **生成来源:** 2026-05-26T17:25:59+00:00

## 可执行文件

- goimports (cli)
- goimports (别名)

## 依赖

- go

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 新鲜度

- 页面生成时间: 2026-05-26
- 管理器版本: 0.45.0
- 管理器更新时间: 2026-05-09
- 本地数据: ok
- 上游仓库: https://github.com/golang/tools
- 检测到的最新版本: v0.45.0 (current)

## 安全说明

no executable entrypoint in the package index.

- **Geiger 风险:** green / low
- no executable entrypoint in the package index

## 相关链接

- [go](https://www.automicvault.com/pkg/brew/go/) - Runtime dependency declared by Homebrew.
- [gopls](https://www.automicvault.com/pkg/brew/gopls/) - Shares the same upstream source repository.

## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- package version freshness
- package relationship graph
- cross-ecosystem install command graph
