package
Version:
v0.3.1
Opens a new window with list of versions in this module.
Published: Mar 16, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
FullDateTime formats t as "2006-01-02 15:04:05 UTC".
Returns empty string for zero time.
HumanTime returns a relative human-readable time (e.g., "3 hours ago").
Returns empty string for zero time.
PrintJSON marshals items as JSON and writes to w.
For proto messages, uses protojson for proper field naming.
type Table[T any] struct {
}
Table renders items as an ASCII table.
NewTable creates a new Table that writes to the given writer.
AddField adds a column to the table with a header name and a field extraction function.
func (t *Table[T]) Write(items []T)
Write renders the table with the given items.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.