GOROOT GOROOT go. ; , , . , , , which go ( Linux/MacOS/BSD) where go ( Windows), , .
Linux/MacOS/BSD
GOROOT go, type go GOROOT /bin/go , , Go. .bashrc :
export GOROOT=/path/to/go-installation
export PATH="${GOROOT}/bin:${PATH}"
Windows
GOROOT go, where go, where go , \bin\go.exe \bin\go.exe . " " "", " ...", "GOROOT" , , .
Instead, change the gocommands goaccording to yours GOROOT, first save the output echo %GOROOT%\bin. Then go to "Edit system environment variables" in "Settings", click "Environment variables ..." and find the line "Path" in the bottom panel, click "Create", enter the path that you created earlier, and finally click "Move up" until it returns above.
Everything
You will need to open a new command line to see the effects.
source
share