replace

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: MIT Imports: 38 Imported by: 0

Documentation

Overview

Package replace substitutes each match according to the configured replacement directives which could be plain strings, builtin variables, or regex capture variables

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Replace

func Replace(
	conf *config.Config,
	matches internalpath.Collection,
) ([]*file.Change, error)

Replace applies the file name replacements according to the --replace argument.

Types

type Exif

type Exif struct {
	Latitude              string
	DateTimeOriginal      string
	Make                  string
	Model                 string
	Longitude             string
	Software              string
	LensModel             string
	ImageLength           []int
	ImageWidth            []int
	FNumber               []string
	FocalLength           []string
	FocalLengthIn35mmFilm []int
	PixelYDimension       []int
	PixelXDimension       []int
	ExposureTime          []string
	ISOSpeedRatings       []int
}

Exif represents exif information from an image file.

type ID3

type ID3 struct {
	Format      string
	FileType    string
	Title       string
	Album       string
	Artist      string
	AlbumArtist string
	Genre       string
	Composer    string
	Year        int
	Track       int
	TotalTracks int
	Disc        int
	TotalDiscs  int
}

ID3 represents id3 data from an audio file.

Jump to

Keyboard shortcuts

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