dbf

package
v0.0.0-...-1f28478 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2019 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 Field

type Field struct {
	Name         string
	Type         FieldType
	Length       byte
	DecimalCount byte
	// contains filtered or unexported fields
}

Field ...

type FieldType

type FieldType byte

FieldType ...

const (
	// TypeCharacter ...
	TypeCharacter FieldType = 'C'

	// TypeDate ...
	TypeDate FieldType = 'D'

	// TypeFloat ...
	TypeFloat FieldType = 'F'

	// TypeLogical ...
	TypeLogical FieldType = 'L'

	// TypeNumeric ...
	TypeNumeric FieldType = 'N'
)
type Header struct {
	Day             time.Time
	NumberOfRecords uint32
	NumberOfFields  uint8
	RecordLength    uint16
	Fields          []*Field
}

Header ...

type Reader

type Reader struct {
	Header
	// contains filtered or unexported fields
}

Reader ...

func NewReader

func NewReader(r io.Reader) (*Reader, error)

NewReader ...

func (*Reader) Next

func (r *Reader) Next() (*Record, error)

Next ...

type Record

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

Record ...

func (*Record) Attr

func (r *Record) Attr(idx int) string

Attr ...

func (*Record) Attrs

func (r *Record) Attrs() []string

Attrs ...

Jump to

Keyboard shortcuts

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