Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Iterator ¶ added in v0.0.2
type Iterator interface { // Return the number of elements Len() int // Return the next struct, or nil Next() any // Reset the iterator to the beginning Reset() }
Iterator is an interface for iterating over a slice of struct values
func NewIterator ¶
NewIterator returns a new slice iterator object, from a single struct value or an array of one or more struct values which are of the same type
type Marshaller ¶
type TableOpt ¶
type TableOpt func(*opts) error
TableOpt is a function which can be used to set options on a table
func OptFieldDelim ¶
Set the field delimiter, default is ',' for CSV and '|' for Text
func OptHeader ¶
func OptHeader() TableOpt
Set the struct field tag which is used to set table options, default is "json"
func OptTimeLayout ¶ added in v0.0.4
Set how time values are formatted in the output
type Writer ¶ added in v0.0.4
type Writer struct {
// contains filtered or unexported fields
}
A writer object which can write table data to an io.Writer
func (*Writer) NewMeta ¶ added in v0.0.4
Create a new table metadata object from a struct value and optional formatting options
Click to show internal directories.
Click to hide internal directories.