Documentation
¶
Index ¶
- Variables
- type IOResult
- func Close[C io.Closer](c C) IOResult[any]
- func Mkdir(path string, perm os.FileMode) IOResult[string]
- func MkdirAll(path string, perm os.FileMode) IOResult[string]
- func ReadAll[R io.ReadCloser](acquire IOResult[R]) IOResult[[]byte]
- func Remove(name string) IOResult[string]
- func WithTempFile[A any](f Kleisli[*os.File, A]) IOResult[A]
- type Kleisli
- type Operator
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Open opens a file for reading Open = ioresult.Eitherize1(os.Open) // Create opens a file for writing Create = ioresult.Eitherize1(os.Create) // ReadFile reads the context of a file ReadFile = ioresult.Eitherize1(os.ReadFile) )
View Source
var ( // CreateTemp created a temp file with proper parametrization CreateTemp = ioresult.Eitherize2(os.CreateTemp) )
Functions ¶
This section is empty.
Types ¶
type IOResult ¶
func MkdirAll ¶
MkdirAll create a sequence of directories, see os.MkdirAll
Click to show internal directories.
Click to hide internal directories.