package
0.0.0-20230226003218-1dd1f65bfa42
Repository: https://github.com/c4-project/c4t.git
Documentation: pkg.go.dev
# Functions
CheckDone checks, without blocking, to see if ctx has been cancelled as of this instant in time.
CopyClose copies src to dst, then closes both.
CopyCloseSrc copies src to dst, then closes src.
DiscardCloser is like io.Discard, but implements WriteCloser.
EnsureWriter passes through w if non-nil, or supplies io.Discard otherwise.
ExpandMany applies homedir.Expand to every (file)path in paths.
ExtlessFile gets the file part of slash-path fpath without its extension.
IsFileEmpty checks whether the open file f is empty.
Mkdirs tries to make each directory in the directory set d.
Rmdirs tries to remove each directory in the directory set d.
# Variables
ErrPathsetNil is a standard error for when things that expect a pathset don't get one.
# Structs
ErrWriter provides an io.Writer that fails with the wrapped error.
NopWriteCloser is like a NopCloser, but implements WriteCloser rather than ReadCloser.