Skip to content

odaceo/lab-hello-world-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lab :: Hello World :: Go Application

License Build Status

Description

A simple Go application on Linux.

Prerequisites

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

Compiling the application

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!

Running the application

To launch the application use the following command:

./bin/hello Odaceo

Reporting Issues

Issues can be reported at https://github.com/odaceo/lab-hello-world-go/issues

Source code

The source code is available at https://github.com/odaceo/lab-hello-world-go

License

All the source code is distributed under ASL 2.0.

Copyright

© 2017 Odaceo. All rights reserved.

Releases

No releases published

Packages

No packages published

Languages