Discover Packages
github.com/cl-tim/hlab
internal
output
package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Nov 19, 2026
License: GPL-3.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0 modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package output renders command results as a human readable table or as
machine readable JSON/YAML.
Formats lists every valid --output value, for help text and validation.
Write emits v in the requested format. For FormatTable the caller supplies a
pre-built table, since the flat grid rarely maps 1:1 onto the data shape.
WriteTable renders the table with tab-aligned columns.
Format is an output encoding selected by the global -o/--output flag.
const (
FormatTable Format = "table"
FormatJSON Format = "json"
FormatYAML Format = "yaml"
)
ParseFormat validates a user supplied format string.
Structured reports whether the format is machine readable, which callers use
to suppress decorative output.
type Table struct {
Rows [][]string
}
Table is a simple column-aligned grid.
AddRow appends a row, converting each cell with fmt.Sprint.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.