header

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CellItem

type CellItem struct {
	Text string
	Ref  string
	// contains filtered or unexported fields
}

func NewCellItem

func NewCellItem(text string) CellItem

func (CellItem) Display

func (c CellItem) Display() string

func (CellItem) Refer

func (c CellItem) Refer(ref string) CellItem

func (CellItem) Select

func (c CellItem) Select() CellItem

func (CellItem) Selected

func (c CellItem) Selected(selected bool) CellItem

type IntItem

type IntItem struct {
	Val int
	// contains filtered or unexported fields
}

func NewIntItem

func NewIntItem(val int) IntItem

func (IntItem) Display

func (i IntItem) Display() string

func (IntItem) Ref

func (i IntItem) Ref() IntItem

type Item

type Item interface {
	Display() string
}

type Items

type Items []Item

func (Items) ColSetup

func (i Items) ColSetup(left bool) string

func (Items) Length

func (i Items) Length() int

func (Items) Row

func (i Items) Row() string

func (Items) Table

func (i Items) Table(left bool) string

func (Items) WithTopRightCorner

func (i Items) WithTopRightCorner(flag bool) Items

type ItemsGroup

type ItemsGroup struct {
	Items Items
	// contains filtered or unexported fields
}

func NewItemsGroup

func NewItemsGroup(items ...Item) ItemsGroup

func (ItemsGroup) Delim

func (i ItemsGroup) Delim(delim string) ItemsGroup

func (ItemsGroup) Display

func (i ItemsGroup) Display() string

type MonthItem

type MonthItem struct {
	Val time.Month
	// contains filtered or unexported fields
}

func NewMonthItem

func NewMonthItem(m time.Month) MonthItem

func (MonthItem) Display

func (m MonthItem) Display() string

func (MonthItem) Ref

func (m MonthItem) Ref() MonthItem

func (MonthItem) Shorten

func (m MonthItem) Shorten(f bool) MonthItem

type PlainItem

type PlainItem struct {
	Text string
}

func NewPlainItem

func NewPlainItem(text string) PlainItem

func (PlainItem) Display

func (p PlainItem) Display() string

type TextItem

type TextItem struct {
	Name string
	// contains filtered or unexported fields
}

func NewTextItem

func NewTextItem(name string) TextItem

func (TextItem) Bold

func (t TextItem) Bold(f bool) TextItem

func (TextItem) Display

func (t TextItem) Display() string

func (TextItem) Ref

func (t TextItem) Ref(ref bool) TextItem

func (TextItem) RefPrefix

func (t TextItem) RefPrefix(refPrefix string) TextItem

func (TextItem) RefText

func (t TextItem) RefText(refText string) TextItem

Jump to

Keyboard shortcuts

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