swapreader
--
import "github.com/cmcoffee/snugforge/swapreader"
Usage
type Reader
type Reader struct {
}
Swap Reader allows for swapping the io.Reader backed []bytes
func (*Reader) Read
func (r *Reader) Read(p []byte) (n int, err error)
swap_reader Read function.
func (*Reader) SetBytes
func (r *Reader) SetBytes(in []byte)
Set []byte for reader
func (*Reader) SetReader
func (r *Reader) SetReader(in io.Reader)
Set Reader to Reader