diff options
Diffstat (limited to 'internal/scanner/scanner.go')
| -rw-r--r-- | internal/scanner/scanner.go | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/internal/scanner/scanner.go b/internal/scanner/scanner.go new file mode 100644 index 0000000..c2c2fea --- /dev/null +++ b/internal/scanner/scanner.go @@ -0,0 +1,20 @@ +package scanner + +import "context" + +type Scanner struct { + roots []string +} + +func New(roots []string) *Scanner { + return &Scanner{ + roots: roots, + } +} + +// Scan walks every configured root and returns the discovered files. +// +// The returned slice is not guaranteed to be sorted. +func (s *Scanner) Scan(ctx context.Context) ([]File, error) { + return nil, nil +} |