input

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCouldntReadDir = errors.New("couldn't read dir")
View Source
var ErrCouldntReadFile = errors.New("couldn't read file")

Functions

func CurrentWorkingDirFS

func CurrentWorkingDirFS() fs.FS

Types

type Dir

type Dir struct {
	File
}

func (Dir) Read

func (f Dir) Read() ([]io.ReadCloser, error)

type File

type File struct {
	fs.FS
	Path string
}

func (File) Name

func (f File) Name() string

func (File) Read

func (f File) Read() ([]io.ReadCloser, error)

type Stream

type Stream struct {
	Source string
	io.Reader
}

func (Stream) Name

func (f Stream) Name() string

func (Stream) Read

func (f Stream) Read() ([]io.ReadCloser, error)

Jump to

Keyboard shortcuts

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