Skip to content
Run and restart go programs when changed
Find file
Latest commit cce04f3 @victorcoder Merge pull request #11 from Aigeruth/fix/kill_process_on_osx
Fix process kill on Mac OS X Mavericks


Guard Go runs go programs and restart when file changes


For gophers

You must have a working Ruby installation, then:

$ gem install bundler
$ cd /your/project/dir
$ bundle init

For gophers and Rubysts

Add this line to your application's Gemfile:

gem 'guard-go'

And then execute:

$ bundle

Or install it yourself as:

$ gem install guard-go


Read Guard usage

$ bundle exec guard init go

This will create your Guardfile.

Edit this and configure your application file name and desired options.

Options defaults to:

:server      => 'app.go' # Go source file to run
:test        => false    # To run go test instead of the app.
:build_only  => false    # To build instead of run.
:args        => []       # Parameters, e.g. :args => 420, :args => [420, 120], :args => ["one", "two"]
:cmd         => 'go'     # Name of the Go commandline tool

$ bundle exec guard
Something went wrong with that request. Please try again.