3 ms·
I've found it simple enough to start a goroutine to watch argv[0] and exec it if it's newer than the startup time of the process. Unlike other languages with i
by xyzzy_plugh 5y ago
I've found it simple enough to start a goroutine to watch argv[0] and exec it if it's newer than the startup time of the process.
Unlike other languages with insane build and link times, I've never needed this for Go. Builds are nearly instantaneous.
- mohanmcgeek 5y agoThis doesn't watch the fs and build automatically now.. Does it? We started using this tool a couple of months ago. It was a huge productivity boost. We had multiple binaries produced by the build and all had to run to make the complete service
- xyzzy_plugh 5y agoI usually run "go build" to see if my code compiles and respond to the errors. If it builds successfully, it's restarted automatically. I personally don't see value in running "go build" out-of-band in another terminal where I can't easily pipe the errors into my editor (or automatically if I'm running it in the editor). If that works for you, then great.