Documentation ¶
Overview ¶
Package transformer implements a transliteration golang.org/x/text/transform.Transformer.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Transformer ¶
type Transformer struct {
// contains filtered or unexported fields
}
Transformer implements transform.Transformer.
It is stateful and not thread-safe.
func New ¶
func New(rules tree.Node) *Transformer
New creates new Transformer for given set of rules.
Accepted rules are a tree.Node, which is expected to return nil Value() if there's no match.
Click to show internal directories.
Click to hide internal directories.