# Install thriftgo with Homebrew

Implementation of thrift compiler in go language with plugin mechanism. Version 0.4.5 via Homebrew; verified 2026-07-26.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install thriftgo
```

  Evidence: local Homebrew formula metadata

## Package facts

- **Package key:** brew:thriftgo
- **Package manager:** Homebrew
- **Version:** 0.4.5
- **Source summary:** Implementation of thrift compiler in go language with plugin mechanism
- **Homepage:** <https://github.com/cloudwego/thriftgo>
- **Repository:** <https://github.com/cloudwego/thriftgo>
- **Last updated:** 2026-07-26T00:50:41+02:00
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- thriftgo (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 0.4.5
## Project history and usage

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

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

- <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


## Security Notes

No matching local secret-handling manifest was found for thriftgo. Nucleus package metadata is still published here so future coverage has a stable package URL.



## Combined YAML source

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


## Sources

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