Create Your Go Projects with TDD in Mind
summary
Shows how to convert an existing Go example (printing tweets) into TDD by following red‑green‑refactor and using Go’s standard testing and reflect packages. Writes a failing test, updates printTweets to accept and return an array literal, runs go test until it passes, then refactors to reuse variables. Demonstrates incremental steps, compiler-driven feedback, and applying TDD to a Magic auth SDK guide; the example works and tests pass.
AI-written summary · about
chapters (7)
- 0:00Introduction
- 1:20My Go Journey
- 5:13What is TDD
- 7:32Why I love TDD
- 10:38How to do TDD
- 12:08TDD in practice
- 21:11Conclusion








