bytereplacer

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2023 License: AGPL-3.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(re *regexp.Regexp, replacement byte) *strings.Replacer

New creates a new Replacer that replaces the bytes matched by the regexp provided by the replacement provided, but it does not run the regexp

Types

type Replacer

type Replacer interface {
	Replace(string) string
}

Replacer performs replacements in a string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL