Documentation ¶
Index ¶
Constants ¶
View Source
const ( // FileTimeLayout defines output file time layout FileTimeLayout = "2006-01-02_15:04:05" // LogTimeLayout defines log time layout LogTimeLayout = "2006-01-02 15:04:05" )
Variables ¶
View Source
var ( // ErrFileOutOfSize describes file out of size ErrFileOutOfSize = errors.New("file out of size") // ErrEmptyFile describes empty file ErrEmptyFile = errors.New("empty file") // ErrSourceIsNotFile describes source is not file ErrSourceIsNotFile = errors.New("source is not file") // ErrDestinationIsNotDir describes is not directory ErrDestinationIsNotDir = errors.New("destination is not directory") )
View Source
var ( // MaxFileSize defines max size for reading file MaxFileSize int64 = 1024 * 1024 * 1024 )
Functions ¶
func Batch ¶
func Batch(bytes [][]byte, processingFunc ConvertFunc) (map[int]string, error)
Batch defines bytes batch processing
func DestFileName ¶
DestFileName returns destination file name
Types ¶
type ConvertFunc ¶
ConvertFunc defines convert func when doing batch
Click to show internal directories.
Click to hide internal directories.