Versions in this module Expand all Collapse all v0 v0.6.0 Nov 27, 2021 Changes in this version + var ErrorAlreadyClosed = errors.New("the sorter resources already flushed and closed") + type Compare func(x, y string) int + type Sorter interface + Close func() error + WriteLine func(line string) error + func New(destStream io.WriteCloser, opts ...SorterOpt) Sorter + type SorterOpt func(opts sorterOpts) sorterOpts + func Comparator(comparator Compare) SorterOpt + func Desc(enabled bool) SorterOpt + func Logger(logger esl.Logger) SorterOpt + func MemoryLimit(limit int) SorterOpt + func TempCompress(enabled bool) SorterOpt + func TempFolder(path string) SorterOpt + func Uniq(enabled bool) SorterOpt