Introduction to the Course
Get introduced to the history and core concepts of Go.
Test driven development and Go
This course will guide us toward test-driven development (TDD) using Go, along with an introduction to the directives that drive this approach.
Prerequisites
The prerequisites that you should have to successfully complete this course are:
- Knowledge of Go’s fundamentals
- Prior experience in writing programs using Go
- Basic knowledge of object-oriented programming (OOP) principles
- Some prior knowledge about unit tests
Learning objectives
This course will provide the following outcomes:
- Learn how to write unit tests in Go
- Discover what TDD is
- Write projects with the TDD approach
Fun fact
There is one thing we need to clarify before moving on: is it “Golang” or “Go?” Is there any difference? It’s very simple. The first domain name with which Go was released was golang.org
, so it’s also referred to as “Golang.” The proper name is “Go,” but to make searching on the net a little bit easier (the word “go” is too generic) we can use the term “Golang” to filter out only relevant matches.
How to follow this course
To get the most out of the course, try following these tips:
- Before going to the next lesson, make sure you understand everything explained in the current lesson.
- Whenever you deal with a code snippet, try doing the following:
- Change input values of a program.
- Change arguments of functions or methods.
- Make sure to also cover edge cases and not just what’s presented in the lesson.
- Make sure to practice with some exercises for each topic.
Course structure
The course has four main sections. It starts with some fundamentals of Go, then moves on to tests, and then to TDD. The final part is about building projects to gain hands-on experience.
Happy learning!