input

package
v0.1.19 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package input provides functionalities for reading streams and files into lines, and splitting up lines and streams into tokens and other substrings.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CutAny

func CutAny(s, seps string) (string, string)

func StringScan

func StringScan(s string) *scanner

Types

type Input

type Input interface {
	Scanner() Scanner
	NextLine() bool
	Close()
}

func Console

func Console() Input

func Infile

func Infile(path string) Input

func NullInput

func NullInput() Input

func SingleLine

func SingleLine(s string) Input

type Scanner

type Scanner interface {
	Token() string
	Substring(string) string
}

Jump to

Keyboard shortcuts

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