pkg.sopackage field notes

brew / 审批门 / 排名 31

使用 Homebrew 安装 go

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

代理安全

代理安全回答

go builds and runs binaries that can access project files, modules, and release workflows.

凭据访问

Reads environment variables, private module credentials, Git credentials, and project config.

远程变更

Can run tools that call cloud, Git, or deployment APIs.

发布/制品风险

Can produce release binaries and publish modules or container images via scripts.

推荐控制

Gate release, private-module, and deployment commands.

代理使用指南

Allow build/test commands; require approval for release publishing and credentialed module operations.

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install go

provider-native install command

概览

软件包摘要

Open source programming language to build simple/reliable/efficient software

命令和别名

  • go
  • gofmt

历史

项目历史与用法

Go is an open source programming language, compiler, standard library, formatter, and command-line toolchain distributed through the go and gofmt executables.

项目历史

Go was designed at Google beginning in 2007 by Robert Griesemer, Rob Pike, and Ken Thompson to improve programming productivity for multicore, networked machines and large codebases. The project was launched to the public on 10 November 2009 as an open source language focused on simplicity and efficiency.

Go 1 was released on 28 March 2012 and established the compatibility promise that programs written for Go 1 should continue to compile and run under later Go 1 releases. That stability turned the experimental public release into a predictable platform for application code, libraries, and distribution packaging.

采用历史

The Go team described strong early community growth after the 2009 launch, including external contributors, mailing-list activity, and adoption both inside Google and by outside companies. By the project's tenth anniversary, Go's official blog described adoption across cloud infrastructure, naming Docker, Etcd, Istio, Kubernetes, Prometheus, and Terraform as examples of core cloud software written in Go.

使用方式

Practitioners use the go command to create modules, fetch dependencies, build, test, install commands, run programs, and maintain go.mod and go.sum files. A module's go.mod file defines the module path, Go version, and dependency requirements, while Go commands such as go mod tidy and go get keep those requirements consistent.

Go's toolchain model made the package more than a compiler binary. The distribution includes the go command plus a bundled toolchain made up of the standard library, compiler, assembler, and other tools; beginning with Go 1.21, the go command can also select or download toolchains according to go and toolchain lines in a module or workspace.

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

The brew:go formula is a foundational language-runtime package on macOS and Linux because it installs the canonical go command and gofmt formatter used to build Go software and many other Homebrew formulas from source.

时间线

  • 2007: Go design work began at Google.
  • 2009: Go was launched as an open source project.
  • 2012: Go 1 was released with the long-term compatibility promise.
  • 2018: Go 1.11 introduced preliminary module support.
  • 2021: Go 1.16 made module-aware mode the default and added //go:embed.
  • 2023: Go 1.21 introduced automatic toolchain selection in the go command.

Related projects

  • Go's ecosystem includes pkg.go.dev, the standard library, the module proxy and checksum database, the x/tools repository, and large cloud-native projects such as Kubernetes, Terraform, Prometheus, Docker, Etcd, and Istio.

审批门

高风险命令的人工审核元数据

本地审批门种子包含 7 条适用于 go 的规则。覆盖的入口点:go, gofmt。严重级别:高, 低, 中。覆盖状态:partial,审核于 2026-05-21。

受控操作示例

  • Compile and run Go packages or files.
  • Install Go commands, often from remote module paths.
  • Change module requirements.
  • Compile and execute tests.
  • Persist Go environment configuration.
  • Delete Go build, module, fuzz, or test caches.
  • Rewrite Go source files in place.

可执行文件

已安装的可执行文件

命令类型暴露范围备注
go可执行文件已索引可执行文件从本地可执行文件索引发现。
gofmt可执行文件已索引可执行文件从本地可执行文件索引发现。

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-08-03
管理器版本1.26.5
管理器更新时间2026-07-08
本地数据未知
上游不可用
检测到的最新版本未检测到
  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:go
版本1.26.5
软件包管理器Homebrew
主页https://go.dev/
最后更新2026-07-08T03:14:15Z
Pulseupdated
Bottle未记录
服务未声明

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

Combined YAML source

View the package source record on GitHub.

combined/go.yml

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • approval-gate seed metadata
  • curated agent safety answer
  • curated package history
  • pkgdb category and tag curation