Overview
This guide introduces how to quickly set up a Go development environment on Mac and run a Hello World program.
Installing Go
Install Go using Homebrew.
|
|
Check the installed version.
|
|
Running Hello World
Save the following code as main.go
.
|
|
Run the code.
|
|
Build the binary and execute it.
|
|
Conclusion
That’s how you can set up a Go development environment on Mac and quickly run a Hello World program.