streamdecode_json

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Import

type Import struct {
	FieldRow int    `json:"field_row"` // 字段所在行
	DataRow  int    `json:"data_row"`  // 数据开始行
	Sep      string `json:"sep"`       // csv 分割符
	// contains filtered or unexported fields
}

func New

func (*Import) Import

func (i *Import) Import() ([]any, int64, error)

func (*Import) ImportWithHandler

func (i *Import) ImportWithHandler(handler JSONHandler) (int64, error)

func (*Import) SetBigLine

func (i *Import) SetBigLine(bigLine bool)

func (*Import) SetDataRow

func (i *Import) SetDataRow(dataRow int)

func (*Import) SetFieldRow

func (i *Import) SetFieldRow(fieldRow int)

func (*Import) SetFields

func (i *Import) SetFields(fields []string)

func (*Import) SetSep

func (i *Import) SetSep(sep string)

type JSONHandler

type JSONHandler func(ctx context.Context, obj map[string]interface{}) error

Jump to

Keyboard shortcuts

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