Home > Article > Backend Development > Can idea use go language?
Idea can use go language. Configuration method: 1. Open IDEA, remove and click "File"-"Settings"-"Plugins"; 2. Click and open "Browse repositories", search for go, and click "Install" to install the go plug-in; 3. Restart IDEA; 4. Click "File"-"Settings"-"Languages&Frameworks"-"Go" in sequence; 5. Configure GOROOT and GOPATH.
The operating environment of this tutorial: Windows 7 system, GO version 1.18, Dell G3 computer.
Idea can use go language, but you need to install plug-ins and configure the environment.
##1. Add Go plug-in <span style="font-size: 16px;"></span>
##2. Configure GOROOT<span style="font-size: 16px;"></span>
Click File --> Settings --> Languages & Frameworks --> Go --> GOROOT, as shown below:
3. Configure GOPATH<span style="font-size: 16px;"></span>
Click File --> Settings --> Languages & Frameworks --> ; Go --> GOPATH, if you follow the steps to build the Go language environment in 1, I believe the Global GOPATH here will have the content as shown in the screenshot below. We can add our own project path to the Project GOPATH below.
(2) Select Go, click the Next button, enter the following page, fill in the project name and project path
(3) Click Finish and choose to open the new project in a new window, as shown below:
(4) Follow the configuration of the new project in 2 GOPATH, screenshot below:
【Related recommendations:
Go video tutorialThe above is the detailed content of Can idea use go language?. For more information, please follow other related articles on the PHP Chinese website!