2.4. Running a Go program
The Go compiler creates an executable binary file as a result of compiling. Complete the following steps to run your program.
Procedure
Use one of the following options to run your Go program:
To run a compiled Go program, enter:
$ ./<file_name>Replace
<file_name>with the name of your executable file.To compile the Go sources in the current directory and run the program in a single step, enter:
$ go run .