I am currently learning the Go programming language. And I followed a sequence of video tutorials on youtube for installation.
I inputted this line in the terminal:
echo "export GOPATH~/Users/Guest/Documents/go" >> .bash_profile
And when I opened the terminal again, below error is displayed at the top:
-bash: export: `GOPATH~/Users/Guest/Documents/go': not a valid identifier
Is there a way on how to fix/remove the error?
There's a typo in the command. Edit .bash_profile and change the command to:
export GOPATH=/Users/Guest/Documents/go