Versions in this module Expand all Collapse all v0 v0.0.1 Jan 25, 2016 Changes in this version + var ErrShortDst = errors.New("transform: short destination buffer") + var ErrShortSrc = errors.New("transform: short source buffer") + 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 Transformer interface + Reset func() + Transform func(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) + var Discard Transformer = discard{} + var Nop Transformer = nop{} + 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)