when trying the example of the moq framework, I get the following exception when I enter “go generate”:
example.go:5: running “moq”: exec: “moq”: executable file not found in $PATH
What should I do? I’m using Kubuntu 16.04
PS: I tried
@sprabhakaran got the right answer. I only needed to add the go binary folder to the PATH global variable:
and if it doesn’t work, check that moq was correctly installed.
Answered By – Racater