type Replacer …
type replacer …
func NewReplacer(oldnew ...string) *Replacer { … }
func (r *Replacer) buildOnce() { … }
func (b *Replacer) build() replacer { … }
func (r *Replacer) Replace(s string) string { … }
func (r *Replacer) WriteString(w io.Writer, s string) (n int, err error) { … }
type trieNode …
func (t *trieNode) add(key, val string, priority int, r *genericReplacer) { … }
func (r *genericReplacer) lookup(s string, ignoreRoot bool) (val string, keylen int, found bool) { … }
type genericReplacer …
func makeGenericReplacer(oldnew []string) *genericReplacer { … }
type appendSliceWriter …
func (w *appendSliceWriter) Write(p []byte) (int, error) { … }
func (w *appendSliceWriter) WriteString(s string) (int, error) { … }
type stringWriter …
func (w stringWriter) WriteString(s string) (int, error) { … }
func getStringWriter(w io.Writer) io.StringWriter { … }
func (r *genericReplacer) Replace(s string) string { … }
func (r *genericReplacer) WriteString(w io.Writer, s string) (n int, err error) { … }
type singleStringReplacer …
func makeSingleStringReplacer(pattern string, value string) *singleStringReplacer { … }
func (r *singleStringReplacer) Replace(s string) string { … }
func (r *singleStringReplacer) WriteString(w io.Writer, s string) (n int, err error) { … }
type byteReplacer …
func (r *byteReplacer) Replace(s string) string { … }
func (r *byteReplacer) WriteString(w io.Writer, s string) (n int, err error) { … }
type byteStringReplacer …
const countCutOff …
func (r *byteStringReplacer) Replace(s string) string { … }
func (r *byteStringReplacer) WriteString(w io.Writer, s string) (n int, err error) { … }