go-watcher

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2021 License: MIT Imports: 7 Imported by: 0

README

简体中文 | English

go-watcher 是一款实现 Golang 源码热重启的工具,可替换 go run 命令执行任意 main 入口程序,包括参数

限制

 Golang 版本 >= 1.13

安装

go get -u github.com/go-component/go-watcher

特点

  • 开箱即用,完美替代 go run 命令
  • 即时重启,底层基于原子操作避免频繁重启
  • 稳定性强,底层实现多信号量安全关闭

使用

go run 命令使用一致

go-watcher {main.go}

例如携带命令行参数

go-watcher {main.go} -f etc/config.yaml

路过的小伙伴们,可以的话,还烦请点个 star 哦,谢谢 ^ ^

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL