types

package
v0.2.75 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: MIT Imports: 0 Imported by: 38

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FieldName

type FieldName = string

type GenericCellValue

type GenericCellValue = interface{}

type MapRow

type MapRow = map[FieldName]GenericCellValue

type Row

type Row interface {
	GetFields() []FieldName
	GetValues() MapRow
}

type SimpleRow

type SimpleRow struct {
	Hash MapRow
}

func (*SimpleRow) GetFields

func (sr *SimpleRow) GetFields() []FieldName

func (*SimpleRow) GetValues

func (sr *SimpleRow) GetValues() MapRow

type Table

type Table struct {
	Columns []FieldName
	Rows    []Row
	// contains filtered or unexported fields
}

func NewTable

func NewTable() *Table

func (*Table) Finalize added in v0.2.8

func (t *Table) Finalize()

Finalize is used to "close" a table after processing inputs into it.

TODO(manuel, 2023-02-19) This is an ugly ugly method, and really the whole Table/middleware structure needs to be refactored See https://github.com/go-go-golems/glazed/issues/146

type TableName

type TableName = string

Jump to

Keyboard shortcuts

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