ecv

package
v1.9.59 Latest Latest
Warning

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

Go to latest
Published: May 23, 2021 License: MIT Imports: 5 Imported by: 0

README

ecv

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EcvField

type EcvField struct {
	Idx  int
	Name string
	Typ  EcvType
}

EcvField #

type EcvFile

type EcvFile struct {
	FileName string
	Tables   []*EcvTable
	UTF8     bool
}

EcvFile #

func NewEcvFile

func NewEcvFile() *EcvFile

NewEcvFile #

func (*EcvFile) Clear

func (ef *EcvFile) Clear()

Clear #

func (*EcvFile) Count

func (ef *EcvFile) Count() int

Count #

func (*EcvFile) GetTable

func (ef *EcvFile) GetTable(table string) *EcvTable

GetTable #

func (*EcvFile) Load

func (ef *EcvFile) Load(filePath string) error

Load #Data

func (*EcvFile) LoadData

func (ef *EcvFile) LoadData(reader Reader) error

LoadData #

type EcvTable

type EcvTable struct {
	KeyFound bool

	CurrentPos int

	Table   string
	Header  string
	IndexOf map[string]int

	Fields []EcvField

	Count int
	// contains filtered or unexported fields
}

EcvTable #

func (*EcvTable) AsInteger

func (t *EcvTable) AsInteger(fix int) int

AsInteger #

func (*EcvTable) AsString

func (t *EcvTable) AsString(fix int) string

AsString #

func (*EcvTable) Fetch

func (t *EcvTable) Fetch() bool

Fetch #

func (*EcvTable) FindFirstInt

func (t *EcvTable) FindFirstInt(key int) int

FindFirstInt #Key

func (*EcvTable) FindNextInt

func (t *EcvTable) FindNextInt() bool

FindNextInt #Key

func (*EcvTable) First

func (t *EcvTable) First() bool

First #

func (*EcvTable) IfieldByName

func (t *EcvTable) IfieldByName(s string) int

IfieldByName #

func (*EcvTable) IsNull

func (t *EcvTable) IsNull(fix int) bool

IsNull #

func (*EcvTable) Open

func (t *EcvTable) Open() bool

Open #

func (*EcvTable) Seek

func (t *EcvTable) Seek(ipos int) bool

Seek to Line

func (*EcvTable) SfieldByName

func (t *EcvTable) SfieldByName(s string) string

SfieldByName #

func (*EcvTable) Sort

func (t *EcvTable) Sort(sidx string)

Sort #mit setIndex

type EcvType

type EcvType int

EcvType #

const (
	EcvInt EcvType = iota
	EcvStr
)

ecv Fieldtype

type Reader

type Reader func(*string) bool

Reader #

Jump to

Keyboard shortcuts

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