We are always trying to automate parts of our daily work that would improve our efficiency. In this course, Code Generation in Go, you’ll learn to generate code for your solution using numerous different approaches. First, you’ll explore how to generate code to display strings for your custom enums. Next, you’ll discover how to leverage templates to generate more advanced code. Finally, you’ll learn how to use generics to achieve repeatable code. When you’re finished with this course, you’ll have the skills and knowledge of automating code generation needed to improve your productivity and reduce the amount of repeatable tasks when creating systems.
Overview
We are always trying to automate parts of our daily work that would improve our efficiency. In this course, Code Generation in Go, you’ll learn to generate code for your solution using numerous different approaches. First, you’ll explore how to generate code to display strings for your custom enums. Next, you’ll discover how to leverage templates to generate more advanced code. Finally, you’ll learn how to use generics to achieve repeatable code. When you’re finished with this course, you’ll have the skills and knowledge of automating code generation needed to improve your productivity and reduce the amount of repeatable tasks when creating systems.
Syllabus
- Course Overview 1min
- Introduction & Overview 7mins
- Review Generation Tools (Packaged) 5mins
- Review Generation Tools (In-source) 4mins
- Advanced Go Generate Flags 4mins
- Overview of Templates 11mins
- Templates - Variables 12mins
- Templates - Conditionals 7mins
- Templates - Loop 8mins
- Templates - Functions 7mins
- Closure and Links 1min
Taught by
Corneile Britz