Go Time: Golang, Software Engineering cover image

Mat's GopherCon EU diary

Go Time: Golang, Software Engineering

CHAPTER

How to Assert in Tests in Go?

Go's assert package was the most imported package in Go at one time. It came out of a further discussion about how to assert yourself, baby. The three lines are verbose and repetitive because you still want to print out what the values are. But it has the benefit of being very readable and you don't have to learn anything new.

00:00
Transcript
Play full episode

Remember Everything You Learn from Podcasts

Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.
App store bannerPlay store banner