convert

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeJSONDelta

func ComputeJSONDelta(old, new interface{}) interface{}

computeDelta recursively compares old and new and returns a delta

func InterfaceToSlice

func InterfaceToSlice(slice interface{}) ([]interface{}, error)

func ReadCSVToStruct

func ReadCSVToStruct(csvFileContent []byte) ([]map[string]string, error)

func ReadCSVToStructWithHeaders

func ReadCSVToStructWithHeaders(csvFileContent []byte) ([]string, []map[string]string, error)

ReadCSVToStructWithHeaders parses a CSV into per-row maps and also returns the (trimmed) header row in its original column order. The row maps lose column order, so callers that need to reproduce the input layout — e.g. the bulk container writing a filtered failed-rows CSV — use the header to drive emission order.

Types

This section is empty.

Jump to

Keyboard shortcuts

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