package
Version:
v0.1.1
Opens a new window with list of versions in this module.
Published: Feb 18, 2026
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package outfmt provides context-based output mode selection (JSON vs human).
IsJSON returns true if the context has JSON output mode enabled.
WithMode stores the output mode in the context.
WriteJSON writes v as pretty-printed JSON to w.
type Mode struct {
JSON bool
}
Mode controls output formatting.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.