Documentation ¶
Overview ¶
Package models contains models used by the application
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileArgumentFlag ¶
type FileArgumentFlag []string
FileArgumentFlag is a custom type that is used to store the file arguments
func (*FileArgumentFlag) Set ¶
func (w *FileArgumentFlag) Set(value string) error
Set is used to implement the flag.Value interface
func (*FileArgumentFlag) String ¶
func (w *FileArgumentFlag) String() string
String is used to implement the flag.Value interface
type FileSystem ¶
FileSystem is an interface that is used to read files from the file system This is used to allow the application to read files from the real file system or from a mock file system for testing
type IntRange ¶
type IntRange struct {
Start, End int
}
IntRange is used to store the start and end of the range of integers. These are used to generate the insert and overwrite rules. The intention is to provide a way to define the range of integers in a structured way.
type MockFileSystem ¶
MockFileSystem is used to read files from the mock file system
type MockScanner ¶
MockScanner is used to read lines from a mock file for testing
func (*MockScanner) Err ¶
func (m *MockScanner) Err() error
Err implements the Err method of the Scanner interface for the MockScanner
func (*MockScanner) Scan ¶
func (m *MockScanner) Scan() bool
Scan implements the Scan, Text, and Err methods of the Scanner interface for the MockScanner
func (*MockScanner) Text ¶
func (m *MockScanner) Text() string
Text implements the Text method of the Scanner interface for the MockScanner
type PairList ¶
type PairList []Pair
PairList is a slice of Pairs that implements sort.Interface to sort by Value
type RealFileSystem ¶
type RealFileSystem struct{}
RealFileSystem is used to read files from the real file system
type TemplateFileOperation ¶ added in v0.2.0
type TemplateFileOperation struct { StartIndex int EndIndex int Verbose bool ReplacementMask string Bypass bool TransformationMode string }
TemplateFileOperation is used to store the transformation operations loaded from JSON template files. The intention is to provide a way to define the operations in a structured way.