csvp

package module
v0.0.0-...-86b5199 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseByCol

func ParseByCol(outSlicePointer interface{}, reader LineReader) error

func ParseLineByCol

func ParseLineByCol(data interface{}, line []string) (err error)

Types

type ColAnnotation

type ColAnnotation struct {
	Col    int
	Parser string
	Param  string
}

func (ColAnnotation) TagName

func (ColAnnotation) TagName() string

type Host

type Host struct {
	SlicePtrRef *reflectool.SlicePtrReflector
	// contains filtered or unexported fields
}

func NewHost

func NewHost(slicePtr interface{}) (*Host, error)

func (*Host) GetProcess

func (h *Host) GetProcess() (ind, len int)

func (*Host) Rewind

func (h *Host) Rewind(i int) error

func (*Host) TakeAndForward

func (h *Host) TakeAndForward(outItemPtr interface{}) error

func (*Host) TakeRandom

func (h *Host) TakeRandom(outItemPtr interface{}) error

type LineReader

type LineReader interface {
	Read() ([]string, error)
}

Jump to

Keyboard shortcuts

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