transformer

package
v1.14.3 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: MIT Imports: 6 Imported by: 1

Documentation

Overview

Package transformer provides a few handy transformers, for use with Scanner and Segmenter.

We use the golang.org/x/text/transform package. We can accept anything that conforms to the transform.Transformer interface.

Index

Constants

This section is empty.

Variables

View Source
var Diacritics transform.Transformer = diacritics{}

Diacritics 'flattens' characters with diacritics, such as accents. For example, açaí → acai. (It has the side effect of normalizing to NFC form, which should be fine.)

View Source
var Lower transform.Transformer = lower{}

Lower transforms text to lowercase

View Source
var Upper transform.Transformer = upper{}

Upper transforms text to uppercase

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