Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReplaceFileContent ¶
ReplaceFileContent replaces the file contents.
func ReplaceText ¶
func ReplaceText(source string, occurences scanner.Occurences, replacementVariants casing.Variants) string
ReplaceText teplaces all occurences with their replacement variants Occurences should be ordered by StartIndex.
Types ¶
type RenameFunc ¶
RenameFunc describes a function used to rename a file/folder.
type ReplaceFileFunc ¶
ReplaceFileFunc describes a function used to replace the contents of a file.
type TotalRenameResult ¶
type TotalRenameResult struct {
OccurencesRenamed int
}
TotalRenameResult describes the result of calling TotalRename
func TotalRename ¶
func TotalRename(groups scanner.OccurenceGroups, replacement string, rename RenameFunc, replaceFile ReplaceFileFunc) (*TotalRenameResult, error)
TotalRename will rename files and paths.
Click to show internal directories.
Click to hide internal directories.