You say you are using Windows 10 but the commands you showed us makes it clear you are using Go in WSL (Windows Subsystem for Linux) rather than native Windows 10. I mention this because it is an important detail.
You modify the PATH env var in your current shell but then run `source ~/.bashrc`. If your ~/.bashrc modifies the PATH env var your manual edit will probably have no effect. What does `which -a go` output? It seems likely that you have more than one installation of the Go toolchain with the 1.13 version being some place other than /usr/local/go/bin. On Wed, Mar 24, 2021 at 8:26 PM Dr. Lincy Jim <drlincy...@gmail.com> wrote: > Hi, > > My os is windows 10 on which i have installed golang1.16 andd the version > of golang on my vscode is1.13 > but since I am using my laptop for work ,i have been asked to upgrade from > 1.13 to 1.15 > I did the following steps in terminal of vscode-ubuntu > $ sudo wget https://golang.org/dl/go1.15.5.linux-amd64.tar.gz > $ sudo tar -C /usr/local -xzf go1.15.5.linux-amd64.tar.gz > $ export PATH=$PATH:/usr/local/go/bin > $ source ~/.bashrc > $ go version > > still it shows version 1.13 > > kindly guide > thanking in advance > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/ac8694ce-6a9d-4ae1-9e91-66b283f1ac50n%40googlegroups.com > <https://groups.google.com/d/msgid/golang-nuts/ac8694ce-6a9d-4ae1-9e91-66b283f1ac50n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CABx2%3DD_RuwgDLS%2BeFODBjEM9NSmPcXPZqe%2Bm792%3DxFp_ntTTqg%40mail.gmail.com.