Documentation ¶
Overview ¶
Package tablewriterproxy is a package that provides a tablewriter proxy for the app.
Index ¶
- Constants
- type TableInstance
- func (t *TableInstance) AppendBulk(rows [][]string)
- func (t *TableInstance) Render()
- func (t *TableInstance) SetAlignment(align int)
- func (t *TableInstance) SetAutoFormatHeaders(auto bool)
- func (t *TableInstance) SetAutoWrapText(auto bool)
- func (t *TableInstance) SetBorder(border bool)
- func (t *TableInstance) SetCenterSeparator(sep string)
- func (t *TableInstance) SetColumnSeparator(sep string)
- func (t *TableInstance) SetHeader(keys []string)
- func (t *TableInstance) SetHeaderAlignment(hAlign int)
- func (t TableInstance) SetHeaderLine(line bool)
- func (t *TableInstance) SetNoWhiteSpace(allow bool)
- func (t *TableInstance) SetRowSeparator(sep string)
- func (t *TableInstance) SetTablePadding(padding string)
- type TableInstanceInterface
- type TableWriter
- type TableWriterProxy
Constants ¶
const ( // ALIGN_CENTER is a proxy for tablewriter.ALIGN_CENTER. ALIGN_LEFT = tablewriter.ALIGN_LEFT )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TableInstance ¶
type TableInstance struct {
FieldTable *tablewriter.Table
}
TableInstance is a struct that implements TableInstanceInterface.
func (*TableInstance) AppendBulk ¶
func (t *TableInstance) AppendBulk(rows [][]string)
AppendBulk is a proxy for tablewriter.Table.AppendBulk.
func (*TableInstance) Render ¶
func (t *TableInstance) Render()
Render is a proxy for tablewriter.Table.Render.
func (*TableInstance) SetAlignment ¶
func (t *TableInstance) SetAlignment(align int)
SetAlignment is a proxy for tablewriter.Table.SetAlignment.
func (*TableInstance) SetAutoFormatHeaders ¶
func (t *TableInstance) SetAutoFormatHeaders(auto bool)
SetAutoFormatHeaders is a proxy for tablewriter.Table.SetAutoFormatHeaders.
func (*TableInstance) SetAutoWrapText ¶
func (t *TableInstance) SetAutoWrapText(auto bool)
SetAutoWrapText is a proxy for tablewriter.Table.SetAutoWrapText.
func (*TableInstance) SetBorder ¶
func (t *TableInstance) SetBorder(border bool)
SetBorder is a proxy for tablewriter.Table.SetBorder.
func (*TableInstance) SetCenterSeparator ¶
func (t *TableInstance) SetCenterSeparator(sep string)
SetCenterSeparator is a proxy for tablewriter.Table.SetCenterSeparator.
func (*TableInstance) SetColumnSeparator ¶
func (t *TableInstance) SetColumnSeparator(sep string)
SetColumnSeparator is a proxy for tablewriter.Table.SetColumnSeparator.
func (*TableInstance) SetHeader ¶
func (t *TableInstance) SetHeader(keys []string)
SetHeader is a proxy for tablewriter.Table.SetHeader.
func (*TableInstance) SetHeaderAlignment ¶
func (t *TableInstance) SetHeaderAlignment(hAlign int)
SetHeaderAlignment is a proxy for tablewriter.Table.SetHeaderAlignment.
func (TableInstance) SetHeaderLine ¶
func (t TableInstance) SetHeaderLine(line bool)
SetHeaderLine is a proxy for tablewriter.Table.SetHeaderLine.
func (*TableInstance) SetNoWhiteSpace ¶
func (t *TableInstance) SetNoWhiteSpace(allow bool)
SetNoWhiteSpace is a proxy for tablewriter.Table.SetNoWhiteSpace.
func (*TableInstance) SetRowSeparator ¶
func (t *TableInstance) SetRowSeparator(sep string)
SetRowSeparator is a proxy for tablewriter.Table.SetRowSeparator.
func (*TableInstance) SetTablePadding ¶
func (t *TableInstance) SetTablePadding(padding string)
SetTablePadding is a proxy for tablewriter.Table.SetTablePadding.
type TableInstanceInterface ¶
type TableInstanceInterface interface { AppendBulk(rows [][]string) Render() SetAlignment(align int) SetAutoFormatHeaders(auto bool) SetAutoWrapText(auto bool) SetBorder(border bool) SetCenterSeparator(sep string) SetColumnSeparator(sep string) SetHeader(keys []string) SetHeaderAlignment(hAlign int) SetHeaderLine(line bool) SetNoWhiteSpace(allow bool) SetRowSeparator(sep string) SetTablePadding(padding string) }
TableInstanceInterface is an interface for tablewriter.Table.
type TableWriter ¶
type TableWriter interface {
NewTable(writer ioproxy.WriterInstanceInterface) *TableInstance
}
TableWriter is an interface for tablewriter.
type TableWriterProxy ¶
type TableWriterProxy struct{}
TableWriterProxy is a struct that implements TableWriter.
func (*TableWriterProxy) NewTable ¶
func (*TableWriterProxy) NewTable(writer ioproxy.WriterInstanceInterface) *TableInstance
NewTable is a proxy for tablewriter.NewTable.