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 ¶
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.
Click to show internal directories.
Click to hide internal directories.