Documentation
¶
Index ¶
- Variables
- func ExtractToFolder(dstFolder string, perm os.FileMode) func(T.FileList) IOE.IOEither[error, T.FileList]
- func FromFolder(folder string) IOE.IOEither[error, T.FileList]
- func Marshal[W io.WriteCloser](acquire IOE.IOEither[error, W]) func(T.FileList) IOE.IOEither[error, []byte]
- func Unmarshal[R io.ReadCloser](acquire IOE.IOEither[error, R]) IOE.IOEither[error, T.FileList]
- func WalkFolder[T any](read func(string) T) func(fs.FS) IOE.IOEither[error, map[string]T]
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // UnmarshalFromStdIn loads a tar file from stdin UnmarshalFromStdIn = Unmarshal(onGetStdIn) // UnmarshalFromInput loads a tar file into a file list from either a file or stdin (using "-" as the stdin identifier) UnmarshalFromInput = F.Flow2( CF.IsNotStdinNorStdout, O.Fold(F.Constant(UnmarshalFromStdIn), UnmarshalFromFile), ) // UnmarshalFromFile loads a tar file into a file list UnmarshalFromFile = F.Flow2( IOEF.Open, Unmarshal[*os.File], ) // MarshalToStdOut stores a a tar file to stdout MarshalToStdOut = Marshal(onGetStdOut) // MarshalToFile stores a file list to a file in tar format MarshalToFile = F.Flow2( IOEF.Create, Marshal[*os.File], ) // MarshalToInput stores a file list either to a tar file or stdout (using "-" as the stdout identifier) MarshalToOutput = F.Flow2( CF.IsNotStdinNorStdout, O.Fold(F.Constant(MarshalToStdOut), MarshalToFile), ) )
Functions ¶
func ExtractToFolder ¶
func ExtractToFolder(dstFolder string, perm os.FileMode) func(T.FileList) IOE.IOEither[error, T.FileList]
ExtractToFolder extracts the file list to the file system in the given folder
func FromFolder ¶
FromFolder reads the content of the given filder into a file list
func Marshal ¶
func Marshal[W io.WriteCloser](acquire IOE.IOEither[error, W]) func(T.FileList) IOE.IOEither[error, []byte]
Marshal serializes a [T.FileList] as a tar file onto a io.WriteCloser
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.