continuously Compile and Run - for go source code
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
crun.sublime-project
main.go
main_test.go
tasks.go
utils.go
watcher.go

README.md

crun - continuously Compile and Run

Crun is a command line tool that compiles and runs your go code and watches all .go files in the current directory, recompiling and rerunning your code when the files change.

Useful to start webapps and recompiling them each time a file changes. As such it is an alternative to go run server.go, each time terminating the command yourself and doing go run server.go again.

Build Status

Install

Ensure Go is installed and your GOPATH set.

Install package:

go get github.com/toonketels/crun

Usage

// Change to directory with your app go source code
cd /path/to/my/app

// Start compiling and running app
crun

You can pass additional arguments to the binary.

// additional arguments after `--` are passed to the binary
crun -- --port=:3000