Пример #1
0
func NewIndexer(f io.ReadCloser) index.Indexer {
	return &indexer{
		f:     f,
		r:     multi.NewReader(f),
		Index: index.New(),
	}
}
Пример #2
0
func NewReader(f io.ReadCloser) io.ReadCloser {
	return &Reader{
		f:        f,
		r:        multi.NewReader(f),
		counter:  1,
		overflow: nil,
	}
}