Markdown

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PedanticMode bool = true
)

Functions

This section is empty.

Types

type Header struct {
	Text  string
	Style TableAllignmentType
}

type Table

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

func NewTable

func NewTable() Table

func NewTableWithHeaders

func NewTableWithHeaders(headers ...Header) Table

func (*Table) AddRow

func (t *Table) AddRow(elements []string) error

func (*Table) AppendHeader

func (t *Table) AppendHeader(header Header)

func (Table) ToText

func (t Table) ToText() []string

type TableAllignmentType added in v0.2.3

type TableAllignmentType int
const (
	TableStyleCenter TableAllignmentType = iota
	TableStyleLeft
	TableStyleRight
)

func (TableAllignmentType) String added in v0.2.3

func (a TableAllignmentType) String() string

Jump to

Keyboard shortcuts

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