tablewriterproxy

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package tablewriterproxy is a package that provides a tablewriter proxy for the app.

Index

Constants

View Source
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.

func New

func New() TableWriter

New is a constructor for TableWriterProxy.

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.

Jump to

Keyboard shortcuts

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