sorter

package
v0.0.0-...-5cc9bdc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SortFiles

func SortFiles(files []fs.DirEntry, conf Config) (err error)

Types

type Config

type Config struct {
	Source string
	Rules  []rule
}

func (*Config) CheckDirs

func (c *Config) CheckDirs() (dir string)

Check if source and target directories exist. Return bad dir name if not.

func (*Config) CheckPatterns

func (c *Config) CheckPatterns() (p string)

Check regex patterns for syntax errors.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL