2.3. Compiling a Go program
You can compile your Go program by using the Go compiler. The Go compiler creates an executable binary file as a result of compiling.
Prerequisites
- A Go workspace with configured modules.
Procedure
Compile the Go sources in the current directory:
$ go build .