Configuration of golang.
Golang Installation And configuration
Windows
1.Download and Installation
2.Set GOPATH in user environment variable settings and global environment variable settings
For me:
|
|
3.Verify the installation
Command Line:
|
|
4.Open the GOMOD
Command Line:
|
|
5.Create a golang project by vscode and config the setting json
|
|
Linux
1.Download and Installation
Download the tar.gz file and unzip it to “/usr/local/”
|
|
2.Config GOROOT
|
|
Add the following words in the last line
|
|
Save the file and source it
|
|
2.Verify the installation
Terminal:
|
|
3.Config GOPATH
|
|
Or
|
|
Add the following words in the last line
|
|
Save the file and source it