readinp

package
v0.0.0-...-39567c2 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read

func Read(filename string) (chan Line, error)

Read starts a goroutine that yields lines on the output channel.

Types

type Line

type Line struct {
	Contents *string
	Error    error
}

Line is the value yielded by read - it either contains contents or an error.

func (Line) Value

func (l Line) Value() string

Value returns the trimmed contents of the line. Crashes on an error line.

Jump to

Keyboard shortcuts

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