io

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LazyReader

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

LazyReader is a wrapper for *os.File which opens the file on read. Used for the CLI which has a common method for handling errors. It will also auto close the file once EOF is reached.

func NewLazyReader

func NewLazyReader(filename string) *LazyReader

func (*LazyReader) Read

func (r *LazyReader) Read(b []byte) (int, error)

Jump to

Keyboard shortcuts

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