mockery
Installation
How to use
create a interface
1 2 3 4 5
| package test
type Tester interface { Test(val int) bool }
|
open your Terminal and cd to the interface directory and input mocker --name ${YOUR_INTERFACE_NAME}
then it will generate mocks folder and mock code