Documentation
¶
Overview ¶
Package stream provides a set of utils to modify the stream.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReplaceReader ¶ added in v0.3.1
type ReplaceReader interface { io.Reader // Count() returns the number of replacements. Count() int }
ReplaceReader is a wrapper of io.Reader, and have additional methods.
func NewSimpleReplacer ¶
func NewSimpleReplacer(r io.Reader, old []byte, new []byte) ReplaceReader
NewSimpleReplacer returns a new Reader with streaming replace supports. It will replace every sequences matching `old` with `new`. This replacer will try to use as less mem as possible.
Click to show internal directories.
Click to hide internal directories.