Go Auto-Recompile and Reload Server on file change

后端 未结 9 924
清酒与你
清酒与你 2020-12-15 22:14

I know AppEngine does this, but I\'m not coding for it.

I tried using Guard from Ruby world, to listen on changes on .go files, and execut

9条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-15 23:03

    I used a tool called entr

    To install brew install entr (mac)
    or, sudo apt-get install entr (linux)

    To recompile & run on .go file changes, run the following command ...

    ls **/*.go | entr go run main.go
    

提交回复
热议问题