file

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// Open opens a file for reading within the given context
	Open = F.Flow3(
		openIOE,
		RIOE.FromIOEither[*os.File],
		RIOE.WithContext[*os.File],
	)
)

Functions

func Close

func Close[C io.Closer](c C) RIOE.ReaderIOEither[any]

Close closes an object

func ReadFile

func ReadFile(path string) RIOE.ReaderIOEither[[]byte]

ReadFile reads a file in the scope of a context

Types

This section is empty.

Jump to

Keyboard shortcuts

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