On a mac computer I set the export export GOPATH=$(pwd)
.
go install
is running fine and the bin folder contains the app, but I am unable to run the app/binary?
On a mac computer I set the export export GOPATH=$(pwd)
.
go install
is running fine and the bin folder contains the app, but I am unable to run the app/binary?
go install
installs a binary to $GOPATH/bin
which is likely does not present in PATH
env variable of your OS.
You need to add$GOPATH/bin
to your PATH
:
export PATH=$GOPATH/bin:$PATH