multivalue

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Converter

type Converter struct {
	Columns []rescommon.ColumnDefinition
	Fields  []FieldConfig
}

Converter transforms multi-value fields into JSON arrays for storage

func (*Converter) Transform

Transform processes metadata.fields and converts registered multi-value fields

type FieldConfig

type FieldConfig struct {
	ColumnName string
	ParseFunc  ParseFunc
}

FieldConfig defines a multi-value field transformation

type ParseFunc

type ParseFunc func(string) ([]interface{}, error)

ParseFunc transforms a string value into a multi-value array

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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