Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContentCache ¶
Cache of contents of files.
type FileContentCache ¶
type FileContentCache struct {
// contains filtered or unexported fields
}
func NewFileContentCache ¶
func NewFileContentCache() *FileContentCache
type FileSource ¶
type FileSource struct {
*ReaderSource
}
func NewFileSource ¶
func NewFileSource(filename string) (*FileSource, error)
type PathWalker ¶
type PathWalker struct {
// contains filtered or unexported fields
}
func NewPathWalker ¶
func NewPathWalker(root string) *PathWalker
NewPathWalker returns a Walker that walks the file tree.
func (PathWalker) Walk ¶
func (w PathWalker) Walk() iter.Seq[*WalkerEntry]
type ReaderSource ¶
type ReaderSource struct {
io.ReadCloser
}
func NewReaderSource ¶
func NewReaderSource(r io.ReadCloser) *ReaderSource
func NewReaderSourceFromReader ¶
func NewReaderSourceFromReader(r io.Reader) *ReaderSource
func (*ReaderSource) AsReadCloser ¶
func (r *ReaderSource) AsReadCloser() io.ReadCloser
func (*ReaderSource) ReadAll ¶
func (r *ReaderSource) ReadAll() ([]byte, error)
type ReaderWalker ¶
type ReaderWalker struct {
// contains filtered or unexported fields
}
func NewReaderWalker ¶
func NewReaderWalker(r io.Reader) *ReaderWalker
NewReaderWalker returns a Walker that walks the paths from the io.Reader.
func (*ReaderWalker) Walk ¶
func (w *ReaderWalker) Walk() iter.Seq[*WalkerEntry]
type Source ¶
type Source interface {
ReadAll() ([]byte, error)
AsReadCloser() io.ReadCloser
}
func NewFileOrStringSource ¶
type StdinSource ¶
type StdinSource struct {
*ReaderSource
}
func NewStdinSource ¶
func NewStdinSource() *StdinSource
type StringSource ¶
type StringSource struct {
*ReaderSource
}
func NewStringSource ¶
func NewStringSource(s string) *StringSource
type Walker ¶
type Walker interface {
Walk() iter.Seq[*WalkerEntry]
}
Click to show internal directories.
Click to hide internal directories.