This repository contains all the code for The Engineering Coach YouTube video, "TDD in Golang: Building a Stack from Scratch."
In this video, we use Test-Driven Development (TDD) to build a Stack abstract data type in Golang. This project serves as a practical demonstration of the TDD workflow—Red, Green, Refactor—using Golang's core testing package.
This video is a great resource for anyone looking to learn the TDD mindset and apply it to a new language. You'll see how the same principles you've seen in our PHP videos apply to any language.
👉 Click here to watch the full video tutorial!
To run the code and follow along with the video, you'll need Golang installed on your machine.
- Clone the repository:
git clone [https://github.com/testingallthethings/008-stack](https://github.com/testingallthethings/008-stack)
cd 008-stack- Run the tests: You can run the tests directly from your terminal using the built-in Golang test command.
go testThe tests are designed to be run in a TDD cycle, as demonstrated in the video.
The Engineering Coach is a YouTube channel dedicated to helping software engineers and engineering managers improve their skills and craft. We provide practical advice and tutorials on topics that matter in the real world of software development.
For more software engineering tutorials and coaching, subscribe to The Engineering Coach on YouTube. You can also connect with me on Bluesky or Mastodon.
