# Install thriftgo with Homebrew

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

## 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
- **Package manager page:** <https://formulae.brew.sh/formula/thriftgo>
- **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>
- **Upstream docs:** <https://github.com/cloudwego/thriftgo#readme>
- **License:** Apache-2.0
- **Source archive:** <https://github.com/cloudwego/thriftgo/archive/refs/tags/v0.4.5.tar.gz>
- **Last updated:** 2026-05-07T12:58:24Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- thriftgo (cli)
- thriftgo (alias)

## Build dependencies

- go

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.4.5
- Package-manager updated: 2026-05-07
- Local data: ok
- Upstream repository: https://github.com/cloudwego/thriftgo
- Upstream latest detected: v0.4.5 (current)
## 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.


## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** thriftgo
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [go](https://www.automicvault.com/pkg/brew/go/) - Build dependency declared by Homebrew.
- [gotests](https://www.automicvault.com/pkg/brew/gotests/) - Shares av.db curated category or tags: cli, code-generation, code-generator, developer-tools, go.
- [hz](https://www.automicvault.com/pkg/brew/hz/) - Shares av.db curated category or tags: cli, code-generation, developer-tools, go, thrift.
- [blueprint-compiler](https://www.automicvault.com/pkg/brew/blueprint-compiler/) - Shares av.db curated category or tags: cli, code-generation, compiler, developer-tools.
- [counterfeiter](https://www.automicvault.com/pkg/brew/counterfeiter/) - Shares av.db curated category or tags: cli, code-generation, developer-tools, go.
- [dhall-bash](https://www.automicvault.com/pkg/brew/dhall-bash/) - Shares av.db curated category or tags: cli, code-generation, compiler, developer-tools.
- [go-bindata](https://www.automicvault.com/pkg/brew/go-bindata/) - Shares av.db curated category or tags: cli, code-generation, developer-tools, go.
- [goctl](https://www.automicvault.com/pkg/brew/goctl/) - Shares av.db curated category or tags: cli, code-generation, developer-tools, go.
- [gomodifytags](https://www.automicvault.com/pkg/brew/gomodifytags/) - Shares av.db curated category or tags: cli, code-generation, developer-tools, go.
- [swift-protobuf](https://www.automicvault.com/pkg/brew/swift-protobuf/) - Local package facts share a topical domain. Shared terms: cli, code, code-generation, code-generator, developer.

## Combined YAML source

View the package source record on GitHub. [combined/thriftgo.yml](https://github.com/automic-vault/db/blob/main/combined/thriftgo.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- cross-ecosystem install command graph
