In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces "how to configure the environment for running the go language in idea". In the daily operation, I believe that many people have doubts about how to configure the environment for running the go language in idea. The editor has consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubts about "how to configure the environment for running the go language in idea". Next, please follow the editor to study!
Methods: 1, download and install go language; 2, configure go environment variables; 3, open idea, select "File"-"settings"-"Plugins", search go, click "install", restart; 4, create project, select go, configure GOROO and GOPATH.
The operating environment of this tutorial: windows10 system, GO 1.11.2, Dell G3 computer.
At the beginning, there must be a setting environment for go language.
Here I choose the one in the red box, then choose the path you want, download and install it.
Configure environment variables
Right-click on this computer, select advanced system settings, select environment variable, double-click Path in environment variable, and fill in your go language path, as shown in the figure:
Cmd, and then run go version. If no error is reported, it indicates success.
Configure idea
Select File- "settings-" Plugins- to search for go, then install, after restart
Create a project and select go
Then in File- > settings, you will see Go in Languages&Frameworks.
Then configure GOROO and GOPATH, as shown in the figure
And then it's done!
Testing package mainimport "fmt" func add (an int, b int) int {var sum int = aplb return sum} func main () {fmt.Print ("hello worldview!", add (100299))} this ends the study of "how idea configures the environment in which the go language runs", hoping to solve everyone's doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.