csvkit

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 31, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package csvkit provides CSV/XLSX/JSON conversion via csvkit or xlsx2csv.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct{}

Backend wraps csvkit (in2csv/csvjson) with xlsx2csv as fallback.

func (Backend) BinaryName

func (Backend) BinaryName() string

func (Backend) Capabilities

func (Backend) Capabilities() []backend.Capability

func (Backend) Convert

func (b Backend) Convert(ctx context.Context, in, out string, opts backend.Options) error

func (Backend) IsAvailable added in v0.1.1

func (Backend) IsAvailable(from, to string) bool

IsAvailable returns true only for capabilities whose required binaries are installed. xlsx→csv accepts either in2csv or xlsx2csv; csv→json needs csvjson; xlsx→json needs both halves of the pipeline. This lets the router skip edges that would otherwise fail at exec time.

func (Backend) Name

func (Backend) Name() string

Jump to

Keyboard shortcuts

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