Help us shape the future of Go! Take the 2026 Go Developer Survey

xan

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package xan implements the `xan` CSV toolkit built-in.

Subset matching just-bash's port: subcommands `select`, `slice`, `filter`, `count`, `flatten`, `headers`, `stats`, `cat`, `to`, `from`, `head`, `tail`, `sort`, `dedup`, `transpose`, and `join`. All file I/O routes through Context.FS; stdin via Context.Stdin; stdout via Context.Stdout.

Filter expressions are a deliberate subset of xan's moonblade language: `COL OP VALUE` where OP is one of `==` / `!=` / `<` / `<=` / `>` / `>=` (numeric if both sides parse as float, else string) plus `=~` / `!~` (regex). COL is matched by header name or 1-based index.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() command.Command

New returns the xan command.

Types

This section is empty.

Jump to

Keyboard shortcuts

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