package
0.0.0-20201102054017-282493799a89
Repository: https://github.com/golangltd/leafltd.git
Documentation: pkg.go.dev
# Functions
The AdditionalMapping option defines the additional mapping rule for the Profile by applying Transformer's in sequence.
The Disallow option further restricts a Profile's allowed characters beyond what is disallowed by the underlying string class.
The FoldCase option defines a Profile's case mapping rule.
The LowerCase option defines a Profile's case mapping rule.
NewFreeform creates a new PRECIS profile based on the Freeform string class.
NewIdentifier creates a new PRECIS profile based on the Identifier string class.
The Norm option defines a Profile's normalization rule.
# Constants
UnicodeVersion is the Unicode version from which the tables in this package are derived.
# Variables
The BidiRule option causes the Bidi Rule defined in RFC 5893 to be applied.
The DisallowEmpty option causes the enforcement step to return an error if the resulting string would be empty.
The FoldWidth option causes the profile to map non-canonical wide and narrow variants to their decomposition mapping.
The IgnoreCase option causes the profile to perform a case insensitive comparison during the PRECIS comparison step.
Implements the Nickname profile specified in RFC 7700.
Implements the OpaqueString profile defined in RFC 7613 for passwords and other secure labels.
Implements the UsernameCaseMapped profile specified in RFC 7613.
Implements the UsernameCasePreserved profile specified in RFC 7613.
# Structs
A Profile represents a set of rules for normalizing and validating strings in the PRECIS framework.
Transformer implements the transform.Transformer interface.
# Type aliases
An Option is used to define the behavior and rules of a Profile.