package
0.21.0
Repository: https://go.googlesource.com/text
Documentation: pkg.go.dev

# Functions

New returns a new Matcher for the given language and options.

# Constants

Anchor restricts the search to the start (or end for Backwards) of the text.
Backwards starts the search from the end of the text.
CLDRVersion is the CLDR version from which the tables in this package are derived.
UnicodeVersion is the Unicode version from which the tables in this package are derived.

# Variables

Exact requires that two strings are their exact equivalent.
IgnoreCase enables case-insensitive search.
IgnoreDiacritics causes diacritics to be ignored ("ö" == "o").
IgnoreWidth equates narrow with wide variants.
Loose causes case, diacritics and width to be ignored.
Supported lists the languages for which search differs from its parent.
WholeWord restricts matches to complete words.

# Structs

A Matcher implements language-specific string matching.
A Pattern is a compiled search string.

# Type aliases

An IndexOption specifies how the Index methods of Pattern or Matcher should match the input.
An Option configures a Matcher.