The process of writing a unit test usually follows a certain set of steps. First, we set up dependencies of the unit under test. Next, we execute the unit of logic under test. We then compare the results of that execution to our expectations. Finally, we tear down any dependencies and restore the environment to the state we found it so as not to affect other unit tests. In Go 1.14, the testing package now includes a method, testing.(*T).Cleanup, which aims to make creating and cleaning up dependencies of tests easier.

The Gopher Guides have a busy schedule this year with conference engagements. Check out this article to find out where you can find them speaking, teaching workshops, or just attending!

I recently had a friend come to me and mention that their website I created for them years ago needed some updating. After looking at it, it was clear it was time for an update. This article will walk through the design decisions and technical challenges that I needed to address in bringing their site up to some modern standards.

This article will outline how in just a few easy steps using git hooks how to ensure you never commit improperly formatted code.

Upcoming Workshop

Upcoming Workshop

Introduction to gRPC - GopherCon EU

Date: Thu, Apr 23 2020 - 6 Hours