fileinput

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileInput

type FileInput struct {
	// contains filtered or unexported fields
}

FileInput is the source that represents the file.

func New

func New(fileName string) FileInput

New initializes a new FileInput with the given file.

func (FileInput) ReadCloser

func (s FileInput) ReadCloser(context.Context) (io.ReadCloser, error)

ReadCloser opens the file. Call Close after usage.

func (FileInput) String

func (s FileInput) String() string

String implements fmt.Stringer.

Jump to

Keyboard shortcuts

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