gin icon indicating copy to clipboard operation
gin copied to clipboard

Add command line flag "--ext" (short "-e") to specify a list of file extensions to watch

Open vladvelici opened this issue 8 years ago • 0 comments

Addresses issue https://github.com/codegangsta/gin/issues/44. Restarting on template change can be achieved using flags "-e .go -e .html".

I needed to restart the server when I edit templates, and I see others have this issue too. This is a really simple solution by just adding a command line flag --ext (short -e), which is an array of strings, so one can do, for example:

gin -e .go -e .html

I would really appreciate any feedback.

Thanks Vlad

vladvelici avatar Dec 10 '15 14:12 vladvelici