![]() If you installed Go with the macOS package, remove the /etc/paths.d/go file. Under Linux and FreeBSD, edit /etc/profile or $HOME/.profile. Remove the Go bin directory from your PATH environment variable.You can remove Go from your system using the steps described in this topic. To uninstall a downloaded version, just remove the directory specified by its GOROOT environment variable and the goX.Y.Z binary. For example, run a command such as the following: When you have multiple versions installed, you can discover where each is installed, look at the version's GOROOT value. To run go commands with the newly-downloaded version, append the version number to the go command, as follows: The following example illustrates with version 1.10.7: To install additional Go versions, run the go install command, specifying the download location of the version you want to install. Note: To install using the method described here, you'll need to have git installed. For a list of versions you can install this way, see the download page. For example, you might want to test your code on multiple Go versions. ![]() You can install multiple Go versions on the same machine. Installing Go from source - How to check out the sources, build them on your own machine, and run them.Download and install - The simplest way to get installed and running. ![]() This topic describes how to install multiple versions of Go on the same machine, as well as how to uninstall Go.įor other content on installing, you might be interested in: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |