downtable

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2023 License: MIT Imports: 6 Imported by: 0

README

downtable

parse csv/json file and output a markdown table string to a file or stdout

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithCSVFile

func WithCSVFile(file *os.File, lazyQuotes bool, trimLeadingSpace bool) ([][]string, error)

Types

type MarkdownTable

type MarkdownTable interface {
	AddHeader(string)
	AddHeaders([]string)
	DeleteHeaders()
	AddRowItem(string, int)
	AddRow([]string) error
	AddRows([][]string)
	DeleteRows()
	AddTable([][]string, error) error
	AddJSONFileTable(*os.File) error
	GetMarkdownTableString() (string, error)
	GetMarkdownTable() ([]byte, error)
	PrintMarkdownTable() (int, error)
}

func NewMarkdownTable

func NewMarkdownTable() MarkdownTable

Jump to

Keyboard shortcuts

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