markdown

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2021 License: Apache-2.0 Imports: 3 Imported by: 28

Documentation

Index

Constants

View Source
const (
	ASCENDING_ORDER  = SortDirection(1)
	DESCENDING_ORDER = SortDirection(-1)
)

Variables

This section is empty.

Functions

func NewTableFormatterBuilder

func NewTableFormatterBuilder() *tableFormatterBuilder

func SortTable added in v0.3.0

func SortTable(data [][]string, fns ...SortFunction)

Types

type SortDirection added in v0.3.0

type SortDirection int

func (SortDirection) StringCompare added in v0.3.0

func (s SortDirection) StringCompare(column int) SortFunction

type SortFunction added in v0.3.0

type SortFunction struct {
	Fn     func(s1, s2 string) int
	Column int
}

type TableFormatter

type TableFormatter interface {
	Format(data [][]string) (string, error)
}

Jump to

Keyboard shortcuts

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