I'm facing some weird issue while trying to run go command in Linux terminal.
I installed GO and set my GOPATH and GOROOT in ~/.profile and after that, I updated the current session using $source ~/.profile. I'm able to access go commands (i.e. go version, go env) in that session, but when I close that session and try to open terminal again and running go command then it is showing that command 'go' not found
But at the same time, I'm able to access go commands in VSCode terminal session. I got confused VSCode using the updated session or something I didn't get about the Linux terminal session.
Thanks in advance for your help.