cannot download, $GOPATH not set

前端 未结 15 2136
闹比i
闹比i 2020-11-29 17:00

I want to install json2csv using go get github.com/jehiah/json2csv but I receive this error:

package github.com/jehiah/json2csv: cannot download         


        
15条回答
  •  既然无缘
    2020-11-29 17:53

    This one worked

    Setting up Go development environment on Ubuntu, and how to fix $GOPATH / $GOROOT

    Steps

    mkdir ~/go
    

    Set $GOPATH in .bashrc,

    export GOPATH=~/go
    export PATH=$PATH:$GOPATH/bin
    

提交回复
热议问题