Saved Bookmarks
| 1. |
How is GoPATH different from GoROOT variables in Go? |
|
Answer» The GoPATH variable is an environment variable that is used for symbolizing the directories out of $GoROOT which combines the source and the BINARIES of GO Projects. The GoROOT variable determines where the Go SDK is located. We do not have to MODIFY the variable unless we plan to use multiple Go versions. The GoPATH determines the root of the workspace whereas the GoROOT determines the LOCATION of Go SDK. |
|