stdin

package
v1.2.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLineByLineFileReader added in v1.2.0

func NewLineByLineFileReader(path string) (readerFunc func() (string, error), err error)

If no error opening the file exists, returns a function that reads line by line when called. The returned function returns io.EOF as error when successfully done with the reading, or another error if a different error existed.

func ReadLine

func ReadLine() string

Reads a line from std input with default trim.

func ReadLineNoTrim

func ReadLineNoTrim() string

Reads a line from std input without default trim.

Types

This section is empty.

Jump to

Keyboard shortcuts

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