scanner

package
v2.14.0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	StdInEnable bool // true: InputFile 未设置时使用 stdin
	InputFile   string
}

type Scanner

type Scanner interface {
	LineCount() int64
	ScanLine() (line string, success bool)
	Close() error
}

func NewScanner

func NewScanner(info Info) (Scanner, *data.CodeError)

NewScanner 输入

Jump to

Keyboard shortcuts

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