When I first started working with this compiler, I really didn’t know how to run the Go program. I put the environment together, I wrote a Go program, and I ran it, and it popped up, and there was a red letter at the bottom, right

Error: Working directory is not specified

And then I saw that Output directory and Working directory were empty, and I created a directory for it, and I created a package for target under this project, and the files that received the Output used this project as a workspace

Noun explanation:

The Output directory of the project file is the directory in which we write the code. Select our project

Example:

package main

import "fmt"

func main(a)  {

	fmt.Println("Hello World")}Copy the code

Output: Hello World