Go moq:运行“ moq”:exec:“ moq”:在$ PATH中找不到可执行文件

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

export PATH=$PATH:/home/[...]/go/src/github.com/matryer/moq

without success

@sprabhakaran got the right answer. I only needed to add the go binary folder to the PATH global variable:

export PATH=$PATH:/home/[...]/go/bin

and if it doesn't work, check that moq was correctly installed.