Closed relxet closed 3 years ago
Hey,
You can use reflect mode to do this easily as it will load the whole package(assumes module example.com/gm521 and code in package gm521):
mockgen -destination=foo_mock_test.go -package=gm521 example.com/gm521 Foo
File foo.go
File bar.go
How to mockgen the file foo.go?