replacement

package
v0.0.0-...-6487655 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2021 License: Unlicense Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ReplacementFolder string

ReplacementFolder is the folder when replacements are saved/loaded from

View Source
var Replacements map[string]string

Replacements maps reywords to result maps

Functions

func DeleteReplacement

func DeleteReplacement(name string)

DeleteReplacement deletes the replacement file with this name

func GetReplacementKeys

func GetReplacementKeys() []string

GetReplacementKeys retrieves the keys from the Replacements map and returns them as an array

func LoadReplacements

func LoadReplacements(folderLocation string)

LoadReplacements loads replacement files from the specified folder location

func ReplaceKeys

func ReplaceKeys(filterContent string) string

ReplaceKeys replaces the replacement keys found within a filter with their value

func SaveReplacement

func SaveReplacement(name string, content string)

SaveReplacement saves the content as a replacement file with name {name}.rep

Types

This section is empty.

Jump to

Keyboard shortcuts

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