# 使用 Homebrew 安装 thriftgo

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

## 安装

```sh
sudo av install brew:thriftgo
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install thriftgo
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:thriftgo
- **软件包管理器:** Homebrew
- **版本:** 0.4.5
- **来源摘要:** Implementation of thrift compiler in go language with plugin mechanism
- **主页:** <https://github.com/cloudwego/thriftgo>
- **仓库:** <https://github.com/cloudwego/thriftgo>
- **最后更新:** 2026-07-26T00:50:41+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- thriftgo (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Thriftgo is CloudWeGo's Go implementation of a Thrift IDL compiler, aimed at generating Go code from `.thrift` files and supporting plugin-based customization.

### 项目历史

The official repository was created in 2021. Its README defines thriftgo as an Apache Thrift IDL compiler written in Go, with code generation for Go and a plugin system for custom code generation.

CloudWeGo documentation positions thriftgo as part of its service-development toolchain: Kitex uses thriftgo as the Thrift IDL parser/generator, and the Kitex code-generation docs describe generated serialization code as coming from thriftgo or protoc underneath the higher-level Kitex command.

### 采用历史

Thriftgo's adoption is concentrated in the Go and CloudWeGo ecosystem. Official CloudWeGo setup docs instruct users to install thriftgo before using Kitex with Thrift IDL, and the Homebrew formula packages the standalone compiler as a developer CLI.

### 使用方式

The README shows the direct compiler workflow as `thriftgo -g go example.thrift`, writing generated code under `./gen-go/<namespace>/`. It also documents generator options, plugins, include paths, recursive generation, and compatibility constraints with the Apache Thrift Go runtime.

CloudWeGo also documents thriftgo features such as IDL trimming from v0.3.1 onward, which lets teams remove unused definitions from large IDL sets before generating Go code.

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

For package maintainers, thriftgo is the Go-specific counterpart to the larger Apache Thrift compiler: it is small as a formula, but important when a Go RPC framework expects exactly this generator and its runtime compatibility behavior.

It matters in reproducible builds because generated Go code, thriftgo version, Apache Thrift runtime version, and Kitex/Hertz scaffolding can all be coupled.

### 时间线

- 2021: GitHub repository created.
- 2022: v0.2.0 release published on GitHub.
- 2024: CloudWeGo documented thriftgo IDL trimming for v0.3.1+.
- 2026: v0.4.5 release published on GitHub.

### Related projects

- Thriftgo is related to Apache Thrift, Kitex, Hertz, and CloudWeGo's plugin ecosystem for Go service code generation.

### 来源

- <https://api.github.com/repos/cloudwego/thriftgo>
- <https://api.github.com/repos/cloudwego/thriftgo/releases>
- <https://github.com/cloudwego/thriftgo>
- <https://www.cloudwego.io/docs/kitex/getting-started/prerequisite/>
- <https://www.cloudwego.io/docs/kitex/tutorials/code-gen/code_generation/>
- <https://www.cloudwego.io/docs/kitex/tutorials/code-gen/idl_trimmer/>
- input source_facts.package-manager


## 安全说明

没有找到 thriftgo 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## Combined YAML source

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


## 来源

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