()
| 24 | } |
| 25 | |
| 26 | func (p *pattern) startSession() { |
| 27 | p.watcher = watcher.NewWatcher(p.value, p.handle) |
| 28 | |
| 29 | if globalLogger.Enabled(globalCtx, slog.LevelDebug) { |
| 30 | globalLogger.LogAttrs(globalCtx, slog.LevelDebug, "watching", slog.String("pattern", p.value)) |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | // this method prepares the pattern struct (aka /path/*pattern) |
| 35 | func (p *pattern) parse() (err error) { |
no test coverage detected