Go gomock gomock is a mocking framework for the Go programming language. It integrates well with Go’s built-in testingpackage, but can be used in other contexts too.