//go:generate! How to Stop Repeating Yourself and Start Living
summary
Shows why and how to generate Go code to avoid repetition. Gives a brief survey of existing code-generation projects for Go and describes the specific code-generation tooling and generated code used at Juno to speed up development.
AI-written summary · about
chapters (17)
- 0:00Introduction
- 3:18Code generation types
- 9:04Go generate tool
- 13:21Five rules for generators
- 16:10First generator example
- 18:00Lexical analysis challenges
- 20:08Code generation packages
- 22:16Type comparison checks
- 25:29Generic code patterns
- 26:10Generator package features
- 27:59Mocks for dependencies
- 29:01Mocking with counters
- 31:15Input validation
- 33:22Client generation
- 36:58Parallel requests
- 38:04Service interaction graphs
- 40:35Automated generation impact
