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.
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)
|
|
|
|
|
}
|
|
|
|
|
```
|