table

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2025 License: BSD-3-Clause, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const MaxColWidth = 18
View Source
const MaxLength = 120

Variables

This section is empty.

Functions

func DateTime

func DateTime(value *strfmt.DateTime) string

func Float

func Float(value float64) string

func Int

func Int(value int64) string

func Render

func Render(rows []Row)

func RenderEmptyState

func RenderEmptyState(message string)

func String

func String(value string) string

func StringList

func StringList(value []string, separator string) string

Types

type Cell

type Cell struct {
	Value     string
	Label     string
	MaxLength int
}
type Header struct {
	IDs    []string
	Labels []string
}

type Row

type Row map[string]Cell

type Table

type Table struct {
	Headers []string
	Rows    [][]string
}

Jump to

Keyboard shortcuts

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