Tests in Go

Learn some of the test features in Go, including subtests, table-driven tests, and flags.

Go has some fantastic features for tests that are worth mentioning.

Subtests

Subtests help us write more structured test code. Let’s use an example to understand this:

Get hands-on with 1200+ tech skills courses.