14 lines
220 B
Markdown
14 lines
220 B
Markdown
# 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)
|
|
}
|
|
```
|