It generates the mock implementing the interface, which can be used during development and testing
Use go get
to install and update:
$ go get -u github.com/AntonParaskiv/mockGen/...
From the commandline, mockGen
can generate Mock-package for Interface-package. It creates a directory with a mock in the same parent directory with an interface.
$ mockGen INTERFACE_PACKAGE_PATH