Writing Open Source Tooling Using AST
summary
Brankas builds Gunk, a Go-first DSL that outputs .proto, protobuf Go code, JSON and Swagger by walking Go source with go/ast and the types checker; the pipeline uses a loader, temporary generated Go files, a parser for kong tags, then a translator that emits file and service descriptors. Result is removal of manual proto editing, automatic gRPC/serialization stubs and docs generation, and a reproducible generator that successfully streamlines internal Go API development.
AI-written summary · about
chapters (23)
- 0:00Intro
- 1:20About Kofo
- 3:11Why Kofo AST
- 3:56How it works
- 6:43TopGem
- 7:26HelloService
- 10:50Yes Package
- 11:43Kofo Internals
- 14:25Digital Load
- 16:23Gink Tags
- 16:50In Load
- 17:24Tags
- 18:03Import
- 18:37Add Temporary Go Files
- 20:07Package Go Files
- 22:33Type Check
- 24:15Imports
- 25:43Contact
- 28:22Generator
- 29:19Append
- 30:10pecs
- 31:24declaration
- 34:25QA session








