go version command shows old version number after update to 1.8

后端 未结 5 1555
清歌不尽
清歌不尽 2021-02-02 09:28

Pretty much the title. I downloaded/installed Go 1.8 for OS X, but when I go

$ go version
go version go1.7.5 darwin/amd64

My .bashrc look like

5条回答
  •  你的背包
    2021-02-02 09:53

    I had the same issue. Even after installing golang 1.10 on mac through download from golang website, mac terminal still showed 1.7 version.

    Updating golang through homebrew fixed my issue.

    brew update
    brew upgrade golang
    

提交回复
热议问题