format

package
v0.13.0-late-materiali... Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package format provides output formatting for query results.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Write

func Write(w io.Writer, f Format, columns []string, rows []map[string]any) error

Write formats columns and rows to the writer in the given format.

Types

type Format

type Format int

Format identifies an output format.

const (
	Table Format = iota
	JSON
	CSV
)

func ParseFormat

func ParseFormat(s string) (Format, error)

ParseFormat parses a format name string.

Jump to

Keyboard shortcuts

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