Documentation ¶
Index ¶
- Variables
- func Recursive(raw string, opts ...Option) error
- type Config
- type Option
- func WithDir(i any, opts ...Option) Option
- func WithDirMatch(globDir string, opts ...Option) Option
- func WithDirMatches(raw any, opts ...Option) Option
- func WithDirStat(f func(pathname string, info os.FileInfo) error) Option
- func WithEmbedFS(f embed.FS) Option
- func WithFileStat(f func(pathname string, info os.FileInfo) error) Option
- func WithFileSystem(f fs.FileSystem) Option
- func WithOnStart(f func(basename string, isDir bool) error) Option
- func WithStat(f func(isDir bool, pathname string, info os.FileInfo) error) Option
Constants ¶
This section is empty.
Variables ¶
View Source
var Exports = map[string]any{ "Recursive": Recursive, "onReady": withYaklangOnStart, "onStat": withYaklangStat, "onFileStat": withYaklangFileStat, "onDirStat": withYaklangDirStat, "dir": WithDir, }
Functions ¶
Types ¶
type Option ¶
type Option func(*Config)
func WithDirMatch ¶
func WithDirMatches ¶
func WithEmbedFS ¶
func WithFileSystem ¶
func WithFileSystem(f fs.FileSystem) Option
Click to show internal directories.
Click to hide internal directories.