go project build failed: lfstackPack redeclared in this block

前端 未结 1 1684
粉色の甜心
粉色の甜心 2021-01-02 04:41

I am new to Go, when I built my project, it returned the following the error:

/usr/local/go/bin/go run /home/qiuwei/GoWorkSpace/src/LearnGo/SoHi/Hello.go
# r         


        
相关标签:
1条回答
  • 2021-01-02 05:19

    Remove all the extracted files and extract the 1.6 tar again. If you are still seeing the issue, you may try restarting your Terminal as well.

    sudo rm -rf /usr/local/go
    tar -C /usr/local -xzf go$VERSION.$OS-$ARCH.tar.gz
    

    For more detail, see this

    0 讨论(0)
提交回复
热议问题