tsv

package
v0.34.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Castable

type Castable interface {
	// String cast the interface value into string
	String() string

	// Int cast the interface value into int
	Int() int
}

type Parsable

type Parsable interface {
	// Defaults set all Parsable empty value to value according to the given interface.
	Defaults(interface{})

	// Next set next Parsable field value to the Castable.
	Next(Castable) bool
}

type Parser

type Parser struct {

	// NoHeader mark the data as no-header TSV.
	NoHeader bool
	// contains filtered or unexported fields
}

func NewParser

func NewParser(r io.Reader) *Parser

func (*Parser) Read

func (p *Parser) Read(v Parsable, def interface{}) bool

Jump to

Keyboard shortcuts

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