Source File
func.go
Belonging Package
go.pact.im/x/extraio
package extraioimport ()var (_ io.Reader = ReaderFunc(nil)_ io.Writer = WriterFunc(nil)_ io.WriterTo = WriterToFunc(nil)_ io.ReaderFrom = ReaderFromFunc(nil))// ReaderFunc is an adapter to allow the use of ordinary function as io.Reader.// If f is a function with appropriate signature, ReaderFunc(f) is an io.Reader// that calls f.type ReaderFunc func(p []byte) (n int, err error)// Read implements the io.Reader interface. It calls f(p).func ( ReaderFunc) ( []byte) ( int, error) {return ()}// WriterFunc is an adapter to allow the use of ordinary function as io.Writer.// If f is a function with appropriate signature, WriterFunc(f) is an io.Writer// that calls f.type WriterFunc func(p []byte) (n int, err error)// Write implements the io.Writer interface. It calls f(p).func ( WriterFunc) ( []byte) ( int, error) {return ()}// WriterToFunc is an adapter to allow the use of ordinary function as io.WriterTo.// If f is a function with appropriate signature, WriterToFunc(f) is an io.WriterTo// that calls f.type WriterToFunc func(w io.Writer) (n int64, err error)// WriteTo implements the io.WriterTo interface. It calls f(w).func ( WriterToFunc) ( io.Writer) ( int64, error) {return ()}// ReaderFromFunc is an adapter to allow the use of ordinary function as io.ReaderFrom.// If f is a function with appropriate signature, ReaderFromFunc(f) is an io.ReaderFrom// that calls f.type ReaderFromFunc func(r io.Reader) (n int64, err error)// ReadFrom implements the io.ReaderFrom interface. It calls f(r).func ( ReaderFromFunc) ( io.Reader) ( int64, error) {return ()}
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64)