import_export_csv

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

type Plugin struct {
	// Delimiter character to use for the csv.
	//   - default: ","
	Delimiter string `json:"delimiter"`
}

func (*Plugin) DecodeRecords

func (p *Plugin) DecodeRecords(collection *core.Collection, reader io.Reader) ([]*core.Record, error)

DecodeRecords implements import_export.RecordsHandler.

func (*Plugin) Description

func (p *Plugin) Description() string

Description implements xpb.Plugin.

func (*Plugin) EncodeRecords

func (p *Plugin) EncodeRecords(records []*core.Record, writer io.Writer) error

EncodeRecords implements import_export.RecordsHandler.

func (*Plugin) FileExtension

func (p *Plugin) FileExtension() string

FileExtension implements import_export.Handler.

func (*Plugin) Init

func (p *Plugin) Init(app core.App) error

Init implements xpb.Plugin.

func (*Plugin) Name

func (p *Plugin) Name() string

Name implements xpb.Plugin.

func (*Plugin) PreValidate

func (p *Plugin) PreValidate(app core.App) error

PreValidate implements xpb.PreValidator.

func (*Plugin) Validate

func (p *Plugin) Validate() error

Validate implements validation.Validatable.

func (*Plugin) Version

func (p *Plugin) Version() string

Version implements xpb.Plugin.

Jump to

Keyboard shortcuts

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