csvutil

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunFromCSV

func RunFromCSV(w io.Writer, r io.Reader, args []string, opts FromCSVOptions) error

RunFromCSV converts CSV to JSON

func RunToCSV

func RunToCSV(w io.Writer, r io.Reader, args []string, opts ToCSVOptions) error

RunToCSV converts JSON to CSV

Types

type FromCSVOptions

type FromCSVOptions struct {
	Header    bool   // First row is header (default: true)
	Delimiter string // Field delimiter (default: ",")
	Array     bool   // Output as array even for single row
}

FromCSVOptions configures the CSV to JSON conversion

type ToCSVOptions

type ToCSVOptions struct {
	Header    bool   // Include header row (default: true)
	Delimiter string // Field delimiter (default: ",")
	NoQuotes  bool   // Don't quote fields
}

ToCSVOptions configures the JSON to CSV conversion

Jump to

Keyboard shortcuts

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