This is a creation in Article, where the information may have evolved or changed.
1. Go Install package download and install
Download from the Go Chinese community: https://studygolang.com/dl The corresponding version, run the installation directly after downloading, the installation path will use its default C:\Go\, then all the way next and complete the installation.
2.Go Language environment variable settings
The Go language needs to configure both the Goroot and PATH environment variables: goroot and Gopath, if the first installation uses the default installation directory C:\Go\, then the Setup program has set the Goroot and PATH environment variables so that it does not need to be manually set.
Note that the above environment change settings are consistent with the path selected during installation.
3. Test environment variables
Open the CMD terminal and enter the go env to see if the variable is set successfully:
4. Download and install Liteide
Liteide is a simple, open source, cross-platform Go language IDE, download address: https://www.golangtc.com/download/liteide, select the appropriate version to download and install the run.
After the installation is complete, open the application, "View" and "Edit current Environment" to confirm that the Goroot variable matches the Go installation path:
5. Create a demo program
FILE-New, create a Mydemo program
Compile and run the program to see the results of the run