This repository has been archived on 2026-09-07. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files

26 lines
630 B
Markdown
Raw Permalink Normal View History

2026-09-07 13:08:44 +01:00
> [!IMPORTANT]
> **This repository is archived and no longer maintained.**
>
> It re-implements directory walking that the standard library now provides,
> and handles fewer edge cases.
>
> **Use instead:**
> - Standard library [`io/fs.WalkDir`](https://pkg.go.dev/io/fs#WalkDir).
> - [`github.com/bmatcuk/doublestar/v4`](https://github.com/bmatcuk/doublestar) for `**` glob and ignore-pattern matching.
---
2026-08-31 22:25:00 +01:00
# Sqan
A simple package to help scan files in a directory.
```go
s := NewScanner("my/dir").
WithExtensions("md", "txt").
WithIgnorePatterns("**/.private/**")
for file := range s.Scan() {
fmt.Println(file)
}
```