export

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package export writes result sets to CSV and JSON.

Export formatting is deliberately separate from the grid's: the grid abbreviates for the eye — "NULL" for absence, an ellipsis for long values — while an export has to be faithful, because something else will read it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CSV

func CSV(w io.Writer, columns []string, rows [][]any) error

CSV writes columns and rows as comma-separated values.

func JSON

func JSON(w io.Writer, columns []string, rows [][]any) error

JSON writes columns and rows as an array of objects.

Types

This section is empty.

Jump to

Keyboard shortcuts

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