infile

package
v1.0.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// The name that is used to represent stdin.
	StdinName = "-"
)

Functions

func Open

func Open(ctx context.Context, filename string) (io.ReadCloser, error)

Open opens and returns a file for input with the given filename.

If filename is equal to o.StdoutName, os.Stdin will be used. If filename does not exist, an error will be returned. If filename does exist, the file will be opened and returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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