etlfs

package
v0.0.8-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package iterfs provides file system iterators.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteFile

func WriteFile(it Iter, p string) error

WriteFile reads []byte from an iterator and writes it to a file the function closes the iterator.

Types

type Iter

type Iter = etl.Iter

Iter common alias to iter.Iter

func Find

func Find(path, pattern string) Iter

Find returns an interator that yields all files in the directory tree that matches pattern.

func FindAsDrow

func FindAsDrow(path, pattern string) Iter

FindDrow returns an iterator that yeilds a row containing information of the files in path that matches pattern.

func ReadFile

func ReadFile(p string) Iter

ReadFile reads a file and yields the content as multiple sets of []byte Closing the iterator will close the file.

type Row

type Row = drow.Row

Row alias to drow.Row

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL