normalizers

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2023 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LowerString models.NormalizationFunction = func(input interface{}) (output interface{}) {
	inputStr, ok := input.(string)
	if !ok {
		return input
	}
	return strings.ToLower(inputStr)
}

LowerString is a NormalizationFunction that lower strings (don't do anything to other types)

View Source
var UpperString models.NormalizationFunction = func(input interface{}) (output interface{}) {
	inputStr, ok := input.(string)
	if !ok {
		return input
	}
	return strings.ToUpper(inputStr)
}

UpperString is a NormalizationFunction that upper strings (don't do anything to other types)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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