Documentation ¶
Index ¶
Constants ¶
View Source
const ( ALIGN_DEFAULT = iota ALIGN_CENTER ALIGN_RIGHT ALIGN_LEFT )
Variables ¶
This section is empty.
Functions ¶
func EncodeJSON ¶
func EncodeYAML ¶
Types ¶
type ResourcePrinter ¶
type TablePrinter ¶
type TablePrinter struct {
// contains filtered or unexported fields
}
func NewTablePrinter ¶
func NewTablePrinter() *TablePrinter
TODO: use make to set the size of the slice
func (*TablePrinter) AppendRow ¶
func (p *TablePrinter) AppendRow(row []string)
func (*TablePrinter) NoTextWrap ¶
func (p *TablePrinter) NoTextWrap()
func (*TablePrinter) Print ¶
func (p *TablePrinter) Print(writer io.Writer)
func (*TablePrinter) SeparateRows ¶
func (p *TablePrinter) SeparateRows()
func (*TablePrinter) SetColumnAlignment ¶
func (p *TablePrinter) SetColumnAlignment(keys []int)
func (*TablePrinter) SetHeader ¶
func (p *TablePrinter) SetHeader(header []string)
Click to show internal directories.
Click to hide internal directories.