Versions in this module Expand all Collapse all v1 v1.0.0 Jan 11, 2026 Changes in this version + type Option func(*Watcher) + func WithInterval(d time.Duration) Option + func WithOnChange(fn func(content []byte)) Option + type Watcher struct + func New(path string, opts ...Option) (*Watcher, error) + func (w *Watcher) Get() []byte + func (w *Watcher) GetFS() ([]byte, fs.FileInfo, error) + func (w *Watcher) Start(ctx context.Context) error