Documentation ¶
Index ¶
- type ReaderWrapper
- type ReaderWrapperr
- type WriterWrapper
- type WriterWrapperr
- func (w *WriterWrapperr) Close() error
- func (w *WriterWrapperr) Flush() error
- func (w *WriterWrapperr) Nwrite() uint64
- func (w *WriterWrapperr) Set(wc io.WriteCloser, ww *WriterWrapper) *WriterWrapperr
- func (w *WriterWrapperr) SetW(wc io.WriteCloser) *WriterWrapperr
- func (w *WriterWrapperr) SetWW(ww *WriterWrapper) *WriterWrapperr
- func (w *WriterWrapperr) Write(p []byte) (n int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReaderWrapper ¶
type ReaderWrapper struct {
// contains filtered or unexported fields
}
func NewReaderWrapper ¶
func NewReaderWrapper(r io.ReadCloser) *ReaderWrapper
func (*ReaderWrapper) Close ¶
func (irw *ReaderWrapper) Close() error
type ReaderWrapperr ¶
type ReaderWrapperr struct {
// contains filtered or unexported fields
}
func NewReaderWrapperr ¶
func NewReaderWrapperr() *ReaderWrapperr
func (*ReaderWrapperr) Close ¶
func (rw *ReaderWrapperr) Close() error
func (*ReaderWrapperr) Set ¶
func (rw *ReaderWrapperr) Set(r io.Reader, rr *ReaderWrapper) *ReaderWrapperr
func (*ReaderWrapperr) SetR ¶
func (rw *ReaderWrapperr) SetR(r io.Reader) *ReaderWrapperr
func (*ReaderWrapperr) SetRR ¶
func (rw *ReaderWrapperr) SetRR(rr *ReaderWrapper) *ReaderWrapperr
type WriterWrapper ¶
type WriterWrapper struct {
// contains filtered or unexported fields
}
func NewWriterWrapper ¶
func NewWriterWrapper(w io.WriteCloser) *WriterWrapper
func (*WriterWrapper) Close ¶
func (i *WriterWrapper) Close() error
func (*WriterWrapper) Flush ¶
func (i *WriterWrapper) Flush() error
func (*WriterWrapper) Nwrite ¶
func (i *WriterWrapper) Nwrite() uint64
type WriterWrapperr ¶
type WriterWrapperr struct {
// contains filtered or unexported fields
}
比如调用gzip.Writer.Close并不会调用gzip.Writer.w的Close方法,这里手动包一层writer 例如使用gzip写到file,下面几个writer的关系是
WriterWrapperr { w: gzip.Writer { w: *WriterWrapper { w: *os.File } } ww: *WriterWrapper { w: *os.File } }
func NewWriterWrapperr ¶
func NewWriterWrapperr() *WriterWrapperr
func (*WriterWrapperr) Close ¶
func (w *WriterWrapperr) Close() error
func (*WriterWrapperr) Flush ¶
func (w *WriterWrapperr) Flush() error
func (*WriterWrapperr) Nwrite ¶
func (w *WriterWrapperr) Nwrite() uint64
func (*WriterWrapperr) Set ¶
func (w *WriterWrapperr) Set(wc io.WriteCloser, ww *WriterWrapper) *WriterWrapperr
func (*WriterWrapperr) SetW ¶
func (w *WriterWrapperr) SetW(wc io.WriteCloser) *WriterWrapperr
func (*WriterWrapperr) SetWW ¶
func (w *WriterWrapperr) SetWW(ww *WriterWrapper) *WriterWrapperr
Click to show internal directories.
Click to hide internal directories.