fixedwidth

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scanner

type Scanner struct {
	*bufio.Scanner
}

func NewScanner

func NewScanner(reader io.Reader) *Scanner

func (*Scanner) Field

func (this *Scanner) Field(field Substring) string

func (*Scanner) Fields

func (this *Scanner) Fields(fields ...Substring) (values []string)

type Substring

type Substring func(line string) (field string)

func Field

func Field(index, width int) Substring

Jump to

Keyboard shortcuts

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