Created
September 7, 2021 03:56
-
-
Save gustavonobreza/d183abd7e0c69b48af2192d279deb883 to your computer and use it in GitHub Desktop.
Live reload golang with nodemon
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| npm install -g nodemon | |
| # Windows | |
| nodemon --exec "go build -o bin.exe . && .\bin.exe" --ignore "*.exe", ".\.git\*" -e go | |
| # Unix based | |
| nodemon --exec "go build -o bin . && ./bin" --ignore "./.git/*" -e go |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment