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