|
2 lat temu | |
---|---|---|
.. | ||
README.md | 2 lat temu | |
fsnotify.go | 2 lat temu |
#fsnotify监控文件
#“sword->%s”:应用模块名称;“./test.json”:监控文件位置和名称;“true”:是否初始化;“func()”:逻辑处理;
#fs.FSNotifyFUNC("sword->%s", "./test.json", true, func() {
#})
#fs.GetNewWatch().WatchDir("./tmp", true, func() {
#})
#默认5秒内 重复操作无效!!!