A simple Go application on Linux.
Vagrant must be installed on your computer to mount the workbench for this project.
Open a Terminal and run the following commands:
vagrant up
vagrant ssh
cd /vagrant
The compile command makes a standalone binary file.
go build -o bin/hello
If you need need to build a binary file for another target operating system and architecture use the following command:
env GOOS=darwin GOARCH=amd64 go build -o bin/hello
See the valid combinations of operating system and compilation architecture.
Cross compilation was never be so easy!
To launch the application use the following command:
./bin/hello Odaceo
Issues can be reported at https://github.com/odaceo/lab-hello-world-go/issues
The source code is available at https://github.com/odaceo/lab-hello-world-go
All the source code is distributed under ASL 2.0.
© 2017 Odaceo. All rights reserved.