Versions in this module Expand all Collapse all v1 v1.0.0 Mar 31, 2023 Changes in this version + const DefaultKey + func ConvertToStruct(record, recordOutput interface{}) error + type ContentReader struct + func MergeReaders(arr []*ContentReader, arrayKey string) (contentReader *ContentReader, err error) + func MergeSortedReaders(readerRecord SortableContentItem, sortedReaders []*ContentReader, ...) (contentReader *ContentReader, err error) + func NewContentReader(filePath string, arrayKey string) *ContentReader + func NewEmptyContentReader(arrayKey string) *ContentReader + func NewMultiSourceContentReader(filePaths []string, arrayKey string) *ContentReader + func SortAndSaveBufferToFile(keysToContentItems map[string]SortableContentItem, allKeys []string, ...) (contentReader *ContentReader, err error) + func SortContentReader(readerRecord SortableContentItem, reader *ContentReader, ascendingOrder bool) (*ContentReader, error) + func SortContentReaderByCalculatedKey(reader *ContentReader, getKeyFunc keyCalculationFunc, ascendingOrder bool) (contentReader *ContentReader, err error) + func (cr *ContentReader) Close() error + func (cr *ContentReader) GetError() error + func (cr *ContentReader) GetFilesPaths() []string + func (cr *ContentReader) IsEmpty() bool + func (cr *ContentReader) Length() (int, error) + func (cr *ContentReader) NextRecord(recordOutput interface{}) error + func (cr *ContentReader) Reset() + type ContentWriter struct + func NewContentWriter(arrayKey string, isCompleteFile, useStdout bool) (*ContentWriter, error) + func (rw *ContentWriter) Close() error + func (rw *ContentWriter) GetArrayKey() string + func (rw *ContentWriter) GetError() error + func (rw *ContentWriter) GetFilePath() string + func (rw *ContentWriter) IsEmpty() bool + func (rw *ContentWriter) RemoveOutputFilePath() error + func (rw *ContentWriter) SetArrayKey(arrKey string) *ContentWriter + func (rw *ContentWriter) Write(record interface{}) + type SortRecord struct + Key string + Record interface{} + func (sr SortRecord) GetSortKey() string + type SortableContentItem interface + GetSortKey func() string