simpleitem

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NoStatus = "NO STATUS"
	DONE     = "DONE"
	BLOCKED  = "BLOCKED"
	TBD      = "TBD"
	WIP      = "WIP"

	BulletTypeNumeric = "numeric"
)
View Source
const (
	SortAsc  = "asc"
	SortDec  = "dec"
	SortDesc = "desc"
	SortDsc  = "dsc"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SimpleCell

type SimpleCell struct {
	Title     string
	ChangedAt *time.Time
	Value     string
	LinkURL   string
	LinkText  string
}

func ColumnValueToSimple

func ColumnValueToSimple(colvals []monday.ColumnValue) []SimpleCell

type SimpleItem

type SimpleItem struct {
	Name                  string
	Status                string
	Date                  *time.Time
	LastChangedStatusDate *time.Time
	FieldsSimple          []SimpleCell
}

func ItemToSimple

func ItemToSimple(item monday.Item) SimpleItem

func (*SimpleItem) LinkURL added in v0.5.0

func (si *SimpleItem) LinkURL() string

func (*SimpleItem) String added in v0.3.0

func (si *SimpleItem) String(linkify, inclStatus bool) string

func (*SimpleItem) TrimSpace added in v0.3.0

func (si *SimpleItem) TrimSpace()

type SimpleItems added in v0.3.0

type SimpleItems []SimpleItem

func BoardSimpleItems

func BoardSimpleItems(b monday.Board) (SimpleItems, error)

func (SimpleItems) ByStatus added in v0.3.0

func (s SimpleItems) ByStatus() map[string]SimpleItems

func (SimpleItems) Len added in v0.3.0

func (s SimpleItems) Len() int

func (SimpleItems) Less added in v0.3.0

func (s SimpleItems) Less(i, j int) bool

func (SimpleItems) Sort added in v0.3.0

func (s SimpleItems) Sort(reverse bool)

Sort is a convenience method.

func (SimpleItems) Statuses added in v0.3.0

func (s SimpleItems) Statuses(convert bool, skip []string) []string

func (SimpleItems) Strings added in v0.3.0

func (s SimpleItems) Strings(bulletType, delimit, sortType string, linkify, inclStatus bool) []string

func (SimpleItems) StringsByStatus added in v0.3.0

func (s SimpleItems) StringsByStatus(bulletType, delimit, sortType string, linkify, inclStatus bool) []string

func (SimpleItems) Swap added in v0.3.0

func (s SimpleItems) Swap(i, j int)

Jump to

Keyboard shortcuts

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