gingin

command module
Version: v0.0.0-...-e97aba2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 5, 2017 License: MIT Imports: 14 Imported by: 0

README

gingin is a fork of command line reloader for live reloading of Go web applications. I have changed the name from gin to differentiate from the excellent Gin framework. Kudos to Codegangsta for the original, but I wanted some features and no one seemed to be ready to apply them.

Installation

Assuming you have a working Go environment and GOPATH/bin is in your PATH, gingin is a breeze to install:

go get github.com/coccodrillo/gingin

Then verify that gingin was installed correctly:

gingin -h

Additional changes

I disliked the handling of the flags in original gin so I added arg runArgs,u which passes comma separated list of flags to the run command. This enables you to switch between production and development environments on the fly instead of changing your code or env variables: gingin -u="-env=development" thus passes "-env=development" to run command

I also added a command to exclude some folders since it helps with compilation times for larger projects - exclude,e takes in a comma separated list of folders to ignore when watching file changes

The original gin readme also said it adheres to the "silence is golden" principle, so it will only complain if there was a compiler error or if you successfully compile after an error. When having longer compile times and not getting an error it was difficult to figure out whether the change was already built. In this case, silence did not appear to be golden, so I added a message for every time when it reloads.

Documentation

The Go Gopher

There is no documentation for this package.

Source Files

Directories

Path Synopsis
lib

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL