cannot download, $GOPATH not set

前端 未结 15 2182
闹比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:50

    I found easier to do it like this:

    export GOROOT=$HOME/go
    export GOPATH=$GOROOT/bin
    export PATH=$PATH:$GOPATH
    

提交回复
热议问题