https://github.com/cespare/reflex
https://github.com/cosmtrek/air
https://github.com/dkfbasel/hot-reload
https://studygolang.com/articles/26039?fr=sidebar
https://github.com/silenceper/gowatch
https://blog.csdn.net/qq_33296108/article/details/87123163
https://github.com/beego/bee
ulimit -n 10000
https://github.com/cespare/reflex/issues/6
reflex -r ‘(.go$|go.mod)’ -s go run main.go serve
https://www.sysleaf.com/go-hot-reload/
https://medium.com/easyread/today-i-learned-golang-live-reload-for-development-using-docker-compose-air-ecc688ee076
https://www.cnblogs.com/Detector/p/9769840.html
https://blog.csdn.net/github_19391267/article/details/103955992
go get github.com/silenceper/gowatch
高级用法
支持的命令行参数:
-o : 非必须,指定build的目标文件路径
-p : 非必须,指定需要build的package(也可以是单个文件)
-args: 非必须,指定程序运行时参数,例如:-args=’-host=:8080,-name=demo’
-v: 非必须,显示gowatch版本信息
例如:
gowatch -o ./bin/demo -p ./cmd/demo
gowatch同时也提供了配置文件的方式,支持更多的个性化的配置,默认当前目录下的gowatch.yaml配置文件:
appname: “test”
output: /bin/demo
watch_exts:
- .yml
watch_paths:
- ../pk
cmd_args:
- arg1=val1
build_args:
- -race
envs:
- a=b
vendor_watch: false
excluded_paths:
- path
build_pkg: “”
build_tags: “”
disable_run: false
https://www.cnblogs.com/silenceper/p/12186738.html