摘要: 使用方法很简单: 1,先用fsnotify 创建一个监听器; 2,然后放到一个单独的goroutine 监听事件即可,通过channel的方式传递; package main import ( "log" "github.com/fsnotify/fsnotify" ) func main() { 阅读全文
posted @ 2021-08-23 09:56 pebblecome 阅读(849) 评论(0) 推荐(0) 编辑