Learning Go
This simple project acts as the basis for an introduction to the programming language Go. It is meant to be downloaded at the Codinglab by the participants.
Head over to the download page and install the runtime for your system.
Be sure to write & run the simple example application as shown on the download page.
The recommended way to work with Go is by the use of a workspace as described here. Setup a base directory containing the folders bin
, pkg
and src
and let the GOPATH
environment variable point to this directory.
Any text editor suffices to work with Go.
If no preference exists, use the following setup to have language support:
- Get a copy of SublimeText
- Install the Package Control plugin
- Use Package Control to install GoSublime
On the command line, navigate to the src
directory of your workspace and enter the command
go get github.com/codingdojovie/go-sample
to let Go download the project.
Then enter the directory src/github.com/nightlyone/go-sample
and enter the commands
go get ./...
go install ./...
to fetch all dependencies and compile the application.
This should have placed an executable binary go-sample
into the bin
folder of your workspace.