Movatterモバイル変換


[0]ホーム

URL:


table

package
v0.35.3Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License:GPL-3.0Imports:5Imported by:0

Details

Repository

github.com/arduino/arduino-cli

Links

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

typeCell

type Cell struct {// contains filtered or unexported fields}

Cell represents a Table cell

funcNewCell

func NewCell(textstring, c *color.Color) *Cell

NewCell creates a new cell. Color can be nil.

func (*Cell)Justify

func (t *Cell) Justify(modeJustifyMode)

Justify sets text justification

func (*Cell)Len

func (t *Cell) Len()int

Len returns the size of the cell, taking into account color codes

func (*Cell)Pad

func (t *Cell) Pad(totalLenint)string

Pad sets the cell padding

typeColumnWidthMode

type ColumnWidthModeint

ColumnWidthMode is used to configure columns type

const (// Minimum FIXMEDOCMinimumColumnWidthMode =iota// Average FIXMEDOCAverage)

typeJustifyMode

type JustifyModeint

JustifyMode is used to configure text alignment on cells

const (JustifyLeftJustifyMode =iotaJustifyCenterJustifyRight)

Justify mode enumeration

typeTable

type Table struct {// contains filtered or unexported fields}

Table represent a table that can be printed on a terminal

funcNew

func New() *Table

New creates an empty table

func (*Table)AddRow

func (t *Table) AddRow(columns ...interface{})

AddRow FIXMEDOC

func (*Table)Render

func (t *Table) Render()string

Render FIXMEDOC

func (*Table)SetColumnWidthMode

func (t *Table) SetColumnWidthMode(xint, modeColumnWidthMode)

SetColumnWidthMode FIXMEDOC

func (*Table)SetHeader

func (t *Table) SetHeader(columns ...interface{})

SetHeader FIXMEDOC

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp