Documentation
¶
Index ¶
Constants ¶
View Source
const MaxFileSize = 1900 * 1024 * 1024 // about 1.9GB
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SplitWriter ¶ added in v0.5.0
type SplitWriter struct {
// contains filtered or unexported fields
}
SplitWriter wraps an io.Writer and splits output into multiple files when size exceeds MaxFileSize
func NewSplitWriter ¶ added in v0.5.0
func NewSplitWriter(baseFilePath string) (*SplitWriter, error)
NewSplitWriter creates a new SplitWriter
func (*SplitWriter) Close ¶ added in v0.5.0
func (sw *SplitWriter) Close() error
Close closes the current file
func (*SplitWriter) IsSplit ¶ added in v0.5.0
func (sw *SplitWriter) IsSplit() bool
IsSplit returns true if the output was split into multiple parts
func (*SplitWriter) Parts ¶ added in v0.5.0
func (sw *SplitWriter) Parts() []string
Parts returns the list of created part files
Click to show internal directories.
Click to hide internal directories.