Documentation ¶
Overview ¶
Package replaceright provides similar functionality to some of the standard library string replacement routines except they start from the right. Uses Boyer-Moore on longer strings.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Replacer ¶
type Replacer struct {
// contains filtered or unexported fields
}
func NewReplacer ¶
Creates a new Replacer that can be used to repeatedly replace a single old-new pair. This implementation of Boyer-Moore is largely copied from the Go standard library.
Click to show internal directories.
Click to hide internal directories.