Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Transformer ¶
type Transformer struct { transform.NopResetter // contains filtered or unexported fields }
Transformer replaces text in a stream See: http://golang.org/x/text/transform
func Bytes ¶
func Bytes(old, new []byte) Transformer
Bytes returns a transformer that replaces all instances of old with new. Unlike bytes.Replace, empty old values don't match anything.
func String ¶
func String(old, new string) Transformer
String returns a transformer that replaces all instances of old with new. Unlike strings.Replace, empty old values don't match anything.
Click to show internal directories.
Click to hide internal directories.