For unit testing, use the testify: (https://github.com/stretchr/testify). It is a simple library which accrues in both assertions and mocks. For functional testing, use the default Go library.