Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintError ¶
PrintError writes an error message to stderr.
Types ¶
type JSONFormatter ¶
type JSONFormatter struct {
// contains filtered or unexported fields
}
JSONFormatter outputs data as JSON.
func NewJSONFormatter ¶
func NewJSONFormatter(w io.Writer) *JSONFormatter
func (*JSONFormatter) Format ¶
func (f *JSONFormatter) Format(data any) error
type TableFormatter ¶
type TableFormatter struct {
// contains filtered or unexported fields
}
TableFormatter outputs data as an ASCII table.
func NewTableFormatter ¶
func NewTableFormatter(w io.Writer) *TableFormatter
func (*TableFormatter) Format ¶
func (f *TableFormatter) Format(data any) error
Click to show internal directories.
Click to hide internal directories.