Follow the installation instructions, keep next, and then use the student mailbox for free
Create a new go project and find that it has been automatically placed in GOPATHthe src directory, but it needs to be configured GOROOT. Click the plus sign --> select local --> select the go installation directory, and add it!
③ Create a simple go project
Create a new go file, pay attention to selection simple application, the created go file can be run
Enter the following:
package main
import"fmt"funcmain(){
fmt.Println("hello windows go!")}