Discover Packages
zombiezen.com/go/bytesreplacer
package
module
Version:
v0.0.0-...-528e5b0
Opens a new window with list of versions in this module.
Published: Jan 19, 2016
License: BSD-3-Clause
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
go-bytesreplacer
Package bytesreplacer provides a utility for replacing parts of byte slices.
This package was merged into go4.org/bytereplacer .
This package exists only for compatibility with existing code.
All code should migrate to using go4.org/bytereplacer
in their imports.
Expand ▾
Collapse ▴
Documentation
¶
Package bytesreplacer provides a utility for replacing parts of byte slices.
Replacer replaces a list of strings with replacements.
It is safe for concurrent use by multiple goroutines.
New returns a new Replacer from a list of old, new string pairs.
Replacements are performed in order, without overlapping matches.
Write writes s to w with all replacements performed.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.