Skip to content

guard/guard-go

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Guard::Go

Guard Go runs go programs and restart when file changes

Installation

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

Usage

Read Guard usage https://github.com/guard/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 insted of the app.
:args   => []       # Parameters, e.g. :args => 420, :args => [420, 120], :args => ["one", "two"]

$ bundle exec guard

About

Run and restart go programs when changed

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%