Documentation ¶
Index ¶
- Variables
- func ExtendMajor(s string) string
- func ExtendMinor(s string) string
- func GenerateChangeSet(l *log.Logger, dir string, tfs ...Normalizer) (map[string]string, error)
- func NormalizeAccidentals(s string) string
- func StrSamples(count int) string
- type Normalizer
- type RenameError
- type RenameErrors
Constants ¶
This section is empty.
Variables ¶
View Source
var SupportedFileExtensions []string = []string{".wav", ".wave", ".flac", ".mp3", ".mp4", ".aiff", ".ogg", ".ogv", ".oga", ".ogx", ".ogm", ".spx", ".opus"}
SupportedFileExtensions is a list over file extensions that are considered audio samples.
Functions ¶
func ExtendMajor ¶
func ExtendMinor ¶
func GenerateChangeSet ¶
GenerateChangeSet returns a map of filenames and their transformed counterparts after applying the transformers in tfs recursively to all files in dir.
func NormalizeAccidentals ¶
func StrSamples ¶
StrSamples returns the word "sample" pluralized according to count.
Types ¶
type Normalizer ¶
type RenameError ¶
func (RenameError) Error ¶
func (re RenameError) Error() string
type RenameErrors ¶
type RenameErrors map[string]RenameError
func (RenameErrors) Check ¶
func (re RenameErrors) Check() bool
func (RenameErrors) Error ¶
func (re RenameErrors) Error() string
Click to show internal directories.
Click to hide internal directories.