Uses the Go (Golang) Codespaces starter template
- Fork the repo / or clone and branch
- run
go test ./... - Note all the tests are failing
- Pick a section under
./srcthat you want to practice (i.e.basics.go) - Write logic to get the tests to pass
- Run the tests for the section you chose until all ✅
In this example we'll use basics.go as the chosen practice section
- Run
go test src/basics_test.go src/basics.go - Note that they all fail
- Open
basics.goand add code to make the tests run ✅
Note: You can also do the following if you want to run individual tests
- Run
cd src - Run
go test -v -run TestIfStatements(ex)