gomocktest go get -v github.com/liangzuboin/gomocktest cd double/service && go test -v Maybe you need: go get -u -v all