# README
Go Tbl -- ASCII Table Writer for Go
This is a fork of olekukonko/tablewriter.
This fork exists because the original is no longer actively maintained, but in developing Rad, I've hit several things I've wanted to change. The easiest thing for me is to fork and make the changes I want, with the primary purpose being for use in Rad.
This is not intended as a 'maintained' version of the original for others to rely on -- I might very well strip out features that I don't need for Rad.
Installation
In your Go project:
go get github.com/amterp/go-tbl
Dev
Release Process
- Commit your changes.
git tag <version>
e.g.git tag v0.5.0
git push origin main --tags
# Functions
ConditionString Simple Condition for string Returns value based on condition.
No description provided by the author
No description provided by the author
No description provided by the author
NewCSV Start A new table by importing from a CSV file Takes io.Writer and csv File name.
NewCSVReader Start a New Table Writer with csv.Reader This enables customisation such as reader.Comma = ';' See http://golang.org/src/pkg/encoding/csv/reader.go?s=3213:3671#L94.
NewWriter Start New Table Take io.Writer Directly.
Pad String Attempts to place string in the center.
PadLeft Pad String Left position This would place string at the right side of the screen.
PadRight Pad String Right position This would place string at the left side of the screen.
Title Format Table Header Replace _ , .
WrapString wraps s into a paragraph of lines of length lim, with minimal raggedness.
WrapWords is the low-level line-breaking algorithm, useful if you need more control over the details of the text wrapping process.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author