~/talk

Create Your Go Projects with TDD in Mind

Talkat GopherCon Europe 2021 · 2021-05-26..05-28· [testing, go]
slides:none on file

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

  1. 0:00Introduction
  2. 1:20My Go Journey
  3. 5:13What is TDD
  4. 7:32Why I love TDD
  5. 10:38How to do TDD
  6. 12:08TDD in practice
  7. 21:11Conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.