Documentation ¶
Index ¶
- type FileMutiWriteCache
- func (this *FileMutiWriteCache) Append(itfs ...FileMutiWriteCacheItf)
- func (this *FileMutiWriteCache) GetFather() FileMutiWriteCacheItf
- func (this *FileMutiWriteCache) Output(oup io.Writer) (int, error)
- func (this *FileMutiWriteCache) SetFather(itf FileMutiWriteCacheItf)
- func (this *FileMutiWriteCache) WriteHead(str string) (int, error)
- func (this *FileMutiWriteCache) WriteHeadLine(str string) (int, error)
- func (this *FileMutiWriteCache) WriteTail(str string) (int, error)
- func (this *FileMutiWriteCache) WriteTailLine(str string) (int, error)
- type FileMutiWriteCacheItf
- type StringCache
- func (this *StringCache) Append(itf ...FileMutiWriteCacheItf)
- func (this *StringCache) GetFather() FileMutiWriteCacheItf
- func (this *StringCache) Output(oup io.Writer) (int, error)
- func (this *StringCache) SetFather(itf FileMutiWriteCacheItf)
- func (this *StringCache) WriteHead(str string) (int, error)
- func (this *StringCache) WriteHeadLine(str string) (int, error)
- func (this *StringCache) WriteTail(str string) (int, error)
- func (this *StringCache) WriteTailLine(str string) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileMutiWriteCache ¶
type FileMutiWriteCache struct { Head *bytes.Buffer Tail *bytes.Buffer Contains []FileMutiWriteCacheItf // contains filtered or unexported fields }
func (*FileMutiWriteCache) Append ¶
func (this *FileMutiWriteCache) Append(itfs ...FileMutiWriteCacheItf)
func (*FileMutiWriteCache) GetFather ¶
func (this *FileMutiWriteCache) GetFather() FileMutiWriteCacheItf
func (*FileMutiWriteCache) Output ¶
func (this *FileMutiWriteCache) Output(oup io.Writer) (int, error)
func (*FileMutiWriteCache) SetFather ¶
func (this *FileMutiWriteCache) SetFather(itf FileMutiWriteCacheItf)
func (*FileMutiWriteCache) WriteHead ¶
func (this *FileMutiWriteCache) WriteHead(str string) (int, error)
func (*FileMutiWriteCache) WriteHeadLine ¶
func (this *FileMutiWriteCache) WriteHeadLine(str string) (int, error)
func (*FileMutiWriteCache) WriteTail ¶
func (this *FileMutiWriteCache) WriteTail(str string) (int, error)
func (*FileMutiWriteCache) WriteTailLine ¶
func (this *FileMutiWriteCache) WriteTailLine(str string) (int, error)
type FileMutiWriteCacheItf ¶
type FileMutiWriteCacheItf interface { WriteHead(str string) (int, error) WriteHeadLine(str string) (int, error) WriteTail(str string) (int, error) WriteTailLine(str string) (int, error) Append(itf ...FileMutiWriteCacheItf) GetFather() FileMutiWriteCacheItf SetFather(itf FileMutiWriteCacheItf) Output(oup io.Writer) (int, error) }
func NewFileMutiWriteCache ¶
func NewFileMutiWriteCache() FileMutiWriteCacheItf
type StringCache ¶
type StringCache struct {
// contains filtered or unexported fields
}
func NewStrCache ¶
func NewStrCache(strs ...string) *StringCache
func (*StringCache) Append ¶
func (this *StringCache) Append(itf ...FileMutiWriteCacheItf)
func (*StringCache) GetFather ¶
func (this *StringCache) GetFather() FileMutiWriteCacheItf
func (*StringCache) SetFather ¶
func (this *StringCache) SetFather(itf FileMutiWriteCacheItf)
func (*StringCache) WriteHeadLine ¶
func (this *StringCache) WriteHeadLine(str string) (int, error)
func (*StringCache) WriteTailLine ¶
func (this *StringCache) WriteTailLine(str string) (int, error)
Click to show internal directories.
Click to hide internal directories.