I want to install json2csv using go get github.com/jehiah/json2csv but I receive this error:
go get github.com/jehiah/json2csv
package github.com/jehiah/json2csv: cannot download
For MAC this worked well for me.
sudo nano /etc/bashrc
and add the below at the end of the file
export PATH=$PATH:/usr/local/opt/go/libexec/bin export GOPATH=/usr/local/opt/go/bin
This should fix the problem. Try opening a new terminal and echo $GOPATH you should see the correct value.