# 使用 Homebrew 安装 xgo

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

## 安装

```sh
sudo av install brew:xgo
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install xgo
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:xgo
- **软件包管理器:** Homebrew
- **版本:** 1.7.5
- **来源摘要:** AI-native programming language that integrates software engineering
- **主页:** <https://xgo.dev/>
- **仓库:** <https://github.com/goplus/xgo>
- **最后更新:** 2026-07-22T05:22:15Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- gop (别名)
- xgo (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.7.5
## 项目历史与用法

XGo is the GoPlus project's programming language and toolchain, presented by the project as an AI-native language that reads closer to plain English while remaining derived from Go. The packaged commands are language tooling: `xgo` for the current toolchain and `gop` for GoPlus-compatible workflows.

### 项目历史

The public repository was created on GitHub on 2015-12-12 under the GoPlus organization. Current project materials describe XGo as a language for engineering, STEM education, and data science, with a smaller best-practice syntax set than Go/Python and compatibility with Go packages and mixed Go/XGo code.

The project has broadened from a Go-derived scripting and education language into an ecosystem pitch: the homepage summarizes it as `XGo := C * Go * Python * JavaScript + Scratch`, while the README describes integration with C/C++, Go, Python, and JavaScript/TypeScript through the Go toolchain and the XGo team's LLGo work.

### 采用历史

XGo is still niche compared with Go itself, but the GitHub project has visible community attention, with roughly 9.4k stars and several hundred forks at the time this enrichment was written. The project also maintains a website, tutorial site, playground, IDE-plugin links, and platform install instructions, which gives it more infrastructure than a one-off experimental compiler.

Adoption is strongest where the language's goals line up with the packaging story: learners, STEM examples, Scratch-compatible 2D projects, simple DevOps scripts through gsh, and experiments that want Go's engineering base with friendlier surface syntax.

### 使用方式

Users install the toolchain, create or enter a module, and run XGo source with commands such as `xgo run .`. The README shows XGo simplifying Go expressions by allowing omitted `package main` and `func main`, command-style calls such as `echo "Hello world"`, list/map literals, keyword-style arguments, and classfile-oriented domain frameworks.

The package matters most as a compiler/runtime entry point rather than as a library. It lets package users try XGo examples, run tutorial code, build small scripts, and experiment with related frameworks such as spx for Scratch-like games, yap for web routes, and gsh for shell-like DevOps tasks.

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

XGo is significant as a packaged language experiment in the post-Go ecosystem. It packages a compiler, syntax experiment, teaching story, and AI-era branding into a Homebrew-installable toolchain while still leaning on Go's module and compiler infrastructure.

For package nerds, the interesting bit is the boundary: XGo is not a Go library and not just a transpiler demo. It is a parallel language surface that tries to stay close enough to Go to inherit tooling while adding domain-friendly syntax and cross-language integration ambitions.

### 时间线

- 2015-12-12: the goplus/xgo GitHub repository is created.
- 2026: the project homepage describes XGo as the first AI-native programming language integrating software engineering into a unified whole.
- 2026: the README presents XGo as a language for engineering, STEM education, and data science, with Go compatibility and LLGo-based C/Python integration goals.

### Related projects

- Go is the base language and ecosystem XGo derives from and interoperates with.
- LLGo is the XGo team's LLVM-based Go compiler path for C, Python, JavaScript, WebAssembly, embedded, and AI/data-science integration.
- TinyGo is listed by the project as another known underlying Go compiler option.
- spx, yap, and gsh are XGo-oriented domain frameworks for Scratch-like games, web programming, and DevOps scripting.

### 来源

- <https://api.github.com/repos/goplus/xgo>
- <https://github.com/goplus/xgo>
- <https://github.com/goplus/xgo/blob/main/doc/docs.md>
- <https://tutorial.xgo.dev/>
- <https://xgo.dev/>


## 安全说明

generalized runtime or code generation signal.

- **Geiger 风险:** yellow / 中
- generalized runtime or code generation signal


## Combined YAML source

View the package source record on GitHub. [combined/xgo.yml](https://github.com/mxcl/pkgdb/blob/main/combined/xgo.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
