argv

package
v0.0.0-...-e714f23 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadAll

func ReadAll() ([]string, error)

ReadAll is the moral equivalent of using <ARGV> in a list context in perl.

This should be changed to read _any_ Reader into a []string.

func ReadChompAll

func ReadChompAll() ([]string, error)

ReadChompAll is the moral equivalent of using <ARGV> in a list context, followed by chomping the input lines (with the canonical record separator).

func ReadToChannels

func ReadToChannels(lines chan<- string, errs chan<- error)

func Reader

func Reader(onError func(filename string, err error)) io.Reader

Reader provides a Reader (filehandle) type interface similar to the Perl ARGV filehandle. It inhales all of the data from the command-line named files, or if there aren't any, it consumes os.Stdin.

func ReaderLoggingErrors

func ReaderLoggingErrors() io.Reader

Types

This section is empty.

Jump to

Keyboard shortcuts

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