Golang

作者: 画十 | 来源:发表于2018-08-20 11:17 被阅读6次

    Ubuntu 一键卸载旧版并且安装最新版:

    sudo apt-get remove golang-go
    sudo apt-get remove --auto-remove golang-go
    
    git clone https://github.com/udhos/update-golang
    cd update-golang
    sudo ./update-golang.sh
    

    配置

    export GOROOT=/usr/local/go
    export GOBIN=$GOROOT/bin
    export PATH=$PATH:$GOBIN
    export GOPATH=$HOME/gopath (可选设置)
    

    参考: build-web-application-with-golang

    相关文章

      网友评论

          本文标题:Golang

          本文链接:https://www.haomeiwen.com/subject/nmmkiftx.html