Run Go programs
This plugin requires Grunt ~0.4.0
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install git-grunt-gorun --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('git-grunt-gorun');
This plugin was designed to work with Grunt 0.4.x. If you're still using grunt v0.3.x it's strongly recommended that you upgrade, but in case you can't please use v0.3.2.
For a working example of git-grunt-gorun and git-grunt-gostop, check out this branch of git-go-websiteskeleton. Also check out gostop and gobuild for other go/grunt modules.
Run this task with the grunt gorun
command.
Run Go programs inline as a Grunt task.
Set to your go file with func main().
Hash of runtime flags.
gorun: {
first: {
src: "main.go"
}
}
gorun: {
first: {
src: "main.go"
},
flags: {
boom: "bam",
foo: 5
}
}
- 2014-11-24 v0.2.3 Actually removed README from package.json.
- 2014-11-24 v0.2.2 Removed README from package.json.
- 2014-11-24 v0.2.1 Fixed package.json to point to correct repo.
- 2014-11-23 v0.2.0 Added support for run time flags.
- 2014-10-13 v0.1.0 Initial commit with basic functionality - Go Run.
Task submitted by Jean de Klerk
This file was generated on Tue Dec 02 2014 14:16:55.