Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewErrorWriter ¶
NewErrorWriter returns io.Writer always returning (0, err). The err should not be nil.
Types ¶
type SliceWriterTo ¶
type SliceWriterTo []byte
SliceWriterTo is an io.WriterTo writing byte slice into provided io.Writer once.
SliceWriterTo is useful for multiple io.WriterTo.WriteTo calls. For single call, it is recommended to use bytes.Reader or bytes.Buffer instead.
Click to show internal directories.
Click to hide internal directories.