go run
for gulp
npm install gulp-go
var gulp = require("gulp");
var gulpgo = require("gulp-go");
var go;
gulp.task("go-run", function() {
go = gulpgo.run("main.go", ["--arg1", "value1"], {cwd: __dirname, stdio: 'inherit'});
});
gulp.task("devs", ["go-run"], function() {
gulp.watch([__dirname+"/**/*.go"]).on("change", function() {
go.restart();
});
});
MIT