input

package
v0.0.0-...-3028776 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Input

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

func New

func New() *Input

Get an io.Reader for the first command-line arg; defaulting to stdin.

func (*Input) EnumerateLines

func (i *Input) EnumerateLines() iter.Seq2[int, string]

NB throws away errors.

func (*Input) Hunks

func (i *Input) Hunks() iter.Seq[[]string]

func (*Input) Ints

func (i *Input) Ints() iter.Seq[int]

func (*Input) Lines

func (i *Input) Lines() iter.Seq[string]

NB throws away errors.

func (*Input) Slurp

func (i *Input) Slurp() string

func (*Input) Strummer

func (i *Input) Strummer() *Strummer

type Strummer

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

func NewStrummer

func NewStrummer() *Strummer

func (*Strummer) Decode

func (s *Strummer) Decode(val any) error

func (*Strummer) Next

func (s *Strummer) Next() bool

Jump to

Keyboard shortcuts

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