Back to browse
GitHub Repository

Write your BPF programs in Go, not C. gobee transpiles a Go subset to BPF C and generates typed cilium/ebpf bindings.

327 starsGo

Write your BPF programs in Go, not C

by boratanrikulu·May 21, 2026·112 points·52 comments

AI Analysis

●●●BangerBig BrainSolve My Problem

Go-to-BPF transpilation beats Aya's Rust approach by reusing clang's mature backend.

Strengths
  • Sourcemap translation maps kernel verifier errors back to Go file and line.
  • Typed Go bindings eliminate stringly-typed program lookups in userspace drivers.
  • Generated C is intentionally readable for debugging when transpilation goes weird.
Weaknesses
  • Only supports a strict Go subset; full language parity is impossible for BPF constraints.
  • Helper coverage limited to 200 typed wrappers versus full C access.
Target Audience

Go developers writing eBPF kernel programs

Similar To

Aya · bpf2go · BCC

Similar Projects

Developer Tools●●●Banger

Gala – Sealed types, pattern matching, and monads for Go

Sealed types + exhaustive pattern matching compile to flat Go interop—no runtime overhead.

Big BrainZero to One
mmcodes
313mo ago
Developer Tools●●Solid

Nimic – write pure Python and compile AOT to native binaries via Nim

Python-to-Nim transpiler with ctypes-backed types when Cython and Numba already exist.

Big BrainNiche Gem
dima-quant
5013d ago