corneliusweig / tabwriter

Drop in replacement for https://golang.org/pkg/text/tabwriter with additional features

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status LICENSE

This repo is a drop-in replacement for the golang text/tabwriter package.

It is based on liggitt/tabwriter which in turn was forked from cf2c2ea8 and inherits its license.

The following additional features are supported:

  • RememberWidths flag allows remembering maximum widths seen per column even after Flush() is called.
  • RememberedWidths() []int and SetRememberedWidths([]int) *Writer allows obtaining and transferring remembered column width between writers.
  • SmashEscape flag ignores escaped text when determining the column width. This is useful for coloring text in columns.

About

Drop in replacement for https://golang.org/pkg/text/tabwriter with additional features

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Go 100.0%