package
0.0.11
Repository: https://github.com/grailbio/base.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

CacheableFor returns the configured cache time if obj is Cacheable, otherwise returns default 0.
ConstChildren constructs a ChildrenGenerator that always returns the given children.
ConstLeaf constructs a leaf with constant contents.
CopyFileInfo constructs FileInfo with the same public fields as info.
FuncChildren constructs a ChildrenGenerator that simply invokes fn, for convenience.
FuncLeaf constructs a Leaf from an open function.
IterateAll reads iter until EOF.
IterateFull reads the full len(dst) nodes from Iterator.
MapIterator returns an Iterator that applies fn to each T yielded by iter.
No description provided by the author
NewConcatIterator returns the elements of the given iterators in order, reading each until EOF.
NewDirInfo constructs FileInfo for a directory.
NewIterator returns an iterator that yields the given nodes.
NewLazyIterator uses the given make function upon the first call to Next to make the nodes that it yields.
NewParent returns a Parent whose children are defined by gen.
NewRegInfo constructs FileInfo for a regular file.
NewSymlinkInfo constructs FileInfo for a symlink.
Open opens the file of a leaf in (the commonly desired) read-only mode.
ReaderAtLeaf constructs a Leaf whose file reads from r.

# Constants

No description provided by the author

# Structs

FileInfo implements os.FileInfo.
ParentReadOnly is a partial implementation of Parent interface functions that returns NotSupported errors for all write operations.

# Interfaces

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author