Open himanshuo opened 9 years ago
Actually, one super awesome thing would be is to make a shell script that reruns the entire go run main.go command everytime there is a difference in any of the recursive files. --would use diff to get difference --recursive --run a command
http://man7.org/linux/man-pages/man7/inotify.7.html
is a file event notifier for linux that is used in the python watchdog module
It is messy in bash. Perhaps make a basic golang version first and then you could potentially use the concepts from that to make a bash version. Anyhow, look at and understand the given gin link above to understand.
Idea of livereload is simple, but (https://github.com/codegangsta/gin) difficult to actually do apparently. It is probably best to start recreating this yourself and then use gin.