gomonkey is a library to make monkey patching in unit tests easy
Extending go with advanced debugging, tracing and mocking functionalities.