Documentation
¶
Overview ¶
Package discovery finds Markdown files by expanding glob patterns from config.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct {
// Patterns is the list of glob patterns to match files against.
// An empty or nil list means no files are discovered.
Patterns []string
// BaseDir is the directory to walk from. Defaults to "." if empty.
BaseDir string
// UseGitignore enables filtering by .gitignore rules.
UseGitignore bool
// FollowSymlinks opts in to including symlinks that resolve
// to regular files. The zero value skips all symlinks, which
// is the secure default.
//
// Symlinks resolving to anything other than a regular file
// (directories, FIFOs, devices, sockets) are always skipped.
// filepath.Walk is Lstat-based, so symlinked directories are
// never descended into regardless of this flag.
FollowSymlinks bool
}
Options controls how file discovery behaves.
Click to show internal directories.
Click to hide internal directories.