package
0.0.0-20231215233255-5eee6075d0e8
Repository: https://github.com/crawl/go-sequell.git
Documentation: pkg.go.dev
# Functions
Combine combines a list of normalizers into a single Normalizer instance that applies each normalizer in order as a List does.
CreateMultiMapper converts a yaml map to a MultiMapper.
MustParseRegexpPairs parses a list of regexp search + replacement expressions and returns a List normalizer that applies those search+replacements in sequence.
Normalize applies the list of string normalizers to text.
NormalizeNoErr applies normalizer to text; errors are silently ignored, and the original text is returned on error.
NormList unpacks trees of normalizers into a simple List of atomic Normalizers.
ParseExactReplacers accepts a slice of string pairs, and constructs a List normalizer of ExactReplacers for each pair, with Before=pair[0] and After=pair[1].
ParseRegexpPairs parses a list of regexp search + replacement expressions and returns a List normalizer.
Reg returns a Normalizer given a regexp to search for and a replacement string.
SR is an alias for StaticReg.
StaticReg returns a regexp Normalizer for re, with the replacment string.
# Variables
ErrNormalizeComplete is a sentinel value returned by a normalizer to request that no other normalizers be run.
# Structs
An ExactReplacer will substitute the text After if given the text Before, and will return other text unmodified.
A RegexpNormalizer applies a regexp search+replace to text.
# Interfaces
A Normalizer normalizes a string value.
# Type aliases
A List of Normalizers, which applies each Normalizer in order.
A MultiMapper represents a string mapping with multiple values per key.