T
T
tfanialn2022-01-28 14:36:49
go
tfanialn, 2022-01-28 14:36:49

Go run automatic rebuild on code change?

go run main.go starts applications, but it does not automatically rebuild when the code changes, how to run it so that the project is rebuilt after changes in the code, for example, as in vue npm run watch

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Evgeny Mamonov, 2022-01-28
@EvgenyMamonov

I use github.com/cespare/reflex to automatically build on code change, very handy

D
Dmitry, 2022-01-28
@Spargwy

Compiled languages ​​in order to run their code, you must first be compiled (surprise:). This implies abort->build->run.
As Eugene said above, there are tools like reflex for this. We also use and are happy.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question