showcsv

package module
v0.0.0-...-2580596 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2021 License: MIT Imports: 13 Imported by: 0

README

showcsv is a utility to play with csv data in terminal.

It provides a library and an executable to display csv data in a tabular format. It is inspired by visidata (https://github.com/saulpw/visidata)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Display

func Display(tableConfig *TableConfig) error

Display function renders the tui table on the terminal Please note that you have to set SHOWCSV_RENDER_TUI environment variable to render TUI. `export SHOWCSV_RENDER_TUI=true` You can save above line in your ~/.bashrc to make it persistent

func DisplayFile

func DisplayFile(fname string, firstRowIsHeader bool) error

DisplayFile loads the given csvfile and displays it on the terminal

Types

type TableConfig

type TableConfig struct {
	// TODO, make header editable to change the column name
	Name   string
	Header []string
	Data   [][]string
}

TableConfig for tuitable

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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