我安装了一个名为 watcher 的实用程序。
https://github.com/canthefason/go-watcher
使用 VS 代码它可以按预期工作。
但是当我尝试在 Goland(来自 Jetbrains)中使用它时,我得到以下信息:
watcher main.go --port 8080
2020/03/04 14:10:42 build started
Building ....
2020/03/04 14:10:43 build completed
Running ...
2020/03/04 14:10:43 process interrupted: signal: killed
Run Code Online (Sandbox Code Playgroud)
不用说go run main.go --port 8080有效。
我用的是 MAC Catalina。
有什么建议么?