I understand that if go code is structured such that it\'s programmed to interfaces, it\'s trivial to mock; however, I\'m working with a code base that I cannot change (that
There is an available monkey patching library for Go. It only works for Intel/AMD systems (targeting OSX and Ubuntu in particular).