Skip to content

jwoy/vagrant-ubuntu-golang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Get up and running with Go in Vagrant

Features

  • Jump right in with Go 1.9 and Ubuntu 16.04 (Xenial).
  • Slim as possible – only the minimal software.
  • Provides you with a workspace according to recommended practice.
    • The workspace is at $HOME/go, the default for Go.
    • The ./go directory on your machine maps to $HOME/go on the guest OS.

Quick steps

  1. Install a supported Vagrant provider such as VirtualBox, HyperV, Docker, or VMware.
  2. Download and install Vagrant.
  3. Clone or download this project to a folder on your machine.
  4. Start and connect to the virtual machine:
    $ vagrant up
    $ vagrant ssh

Install and run an example in the VM:

    $ go get github.com/golang/example/hello
    $ hello
    Hello, Go examples!

Create your own program in the VM:

github.com/user is a universally-unique path of your choosing. package-name is the name of your new program.

    $ mkdir $GOPATH/src/[github.com/user]/[package-name]
    ... create your .go file(s) in the new directory ...
    $ go install github.com/user/[package-name]
    $ [package-name]

About

A simple setup to work (or play) with Go in an Ubuntu VM.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages