Versions in this module Expand all Collapse all v1 v1.2.1 Mar 21, 2017 v1.2.0 Mar 21, 2017 Changes in this version + var Discard Transformer = discard + var ErrEndOfSpan = errors.New("transform: input and output are not identical") + var ErrShortDst = errors.New("transform: short destination buffer") + var ErrShortSrc = errors.New("transform: short source buffer") + var Nop SpanningTransformer = nop + func Append(t Transformer, dst, src []byte) (result []byte, n int, err error) + func Bytes(t Transformer, b []byte) (result []byte, n int, err error) + func String(t Transformer, s string) (result string, n int, err error) + type NopResetter struct + func (NopResetter) Reset() + type Reader struct + func NewReader(r io.Reader, t Transformer) *Reader + func (r *Reader) Read(p []byte) (int, error) + type SpanningTransformer interface + Span func(src []byte, atEOF bool) (n int, err error) + type Transformer interface + Reset func() + Transform func(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) + func Chain(t ...Transformer) Transformer + func RemoveFunc(f func(r rune) bool) Transformer + type Writer struct + func NewWriter(w io.Writer, t Transformer) *Writer + func (w *Writer) Close() error + func (w *Writer) Write(data []byte) (n int, err error)