Go is an open source programming language supported by Google that makes it easy to build simple, reliable, and efficient software.
sudo apt install golang-go
brew install go
Download the installer from here.
Then go to the desired directory and run:
go mod init example.com/hello
To run the program, type and run:
go run ./1_hello_world.go
If you want to save the program as an executable, type and run:
go build ./1_hello_world.go