fileutil

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package fileutil provides file I/O utilities for the csvpp CLI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenInput

func OpenInput(filename string) (io.ReadCloser, error)

OpenInput opens a file for reading or returns stdin if filename is empty. The caller must call Close() on the returned ReadCloser.

func OpenInputFromArgs

func OpenInputFromArgs(args []string) (io.ReadCloser, error)

OpenInputFromArgs opens input based on command arguments. If args is empty, returns stdin. Otherwise opens args[0].

func OpenOutput

func OpenOutput(filename string, fallback io.Writer) (io.WriteCloser, error)

OpenOutput opens a file for writing or returns a WriteCloser wrapping w if filename is empty. The caller must call Close() on the returned WriteCloser.

Types

This section is empty.

Jump to

Keyboard shortcuts

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