Versions in this module Expand all Collapse all v0 v0.1.0 Sep 14, 2017 Changes in this version + const UnicodeVersion + type Option func(*options) + var BidiRule Option = bidiRule + var DisallowEmpty Option = disallowEmpty + var FoldWidth Option = foldWidth + var IgnoreCase Option = ignoreCase + func AdditionalMapping(t ...func() transform.Transformer) Option + func Disallow(set runes.Set) Option + func FoldCase(opts ...cases.Option) Option + func LowerCase(opts ...cases.Option) Option + func Norm(f norm.Form) Option + type Profile struct + var Nickname *Profile = nickname + var OpaqueString *Profile = opaquestring + var UsernameCaseMapped *Profile = usernameCaseMap + var UsernameCasePreserved *Profile = usernameNoCaseMap + func NewFreeform(opts ...Option) *Profile + func NewIdentifier(opts ...Option) *Profile + func (p *Profile) Allowed() runes.Set + func (p *Profile) Append(dst, src []byte) ([]byte, error) + func (p *Profile) AppendCompareKey(dst, src []byte) ([]byte, error) + func (p *Profile) Bytes(b []byte) ([]byte, error) + func (p *Profile) Compare(a, b string) bool + func (p *Profile) CompareKey(s string) (string, error) + func (p *Profile) NewTransformer() *Transformer + func (p *Profile) String(s string) (string, error) + type Transformer struct + func (t Transformer) Bytes(b []byte) []byte + func (t Transformer) Reset() + func (t Transformer) String(s string) string + func (t Transformer) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error)