Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TruncateString ¶
TruncateString truncates a string to the specified length
Types ¶
type OutputFormat ¶
type OutputFormat string
OutputFormat represents the output format
const ( OutputTable OutputFormat = "table" OutputJSON OutputFormat = "json" OutputYAML OutputFormat = "yaml" )
type OutputFormatter ¶
type OutputFormatter struct {
// contains filtered or unexported fields
}
OutputFormatter handles formatting output in different formats
func NewOutputFormatter ¶
func NewOutputFormatter(format OutputFormat) *OutputFormatter
NewOutputFormatter creates a new output formatter
func (*OutputFormatter) Print ¶
func (f *OutputFormatter) Print(data interface{}) error
Print prints data in the specified format
Click to show internal directories.
Click to hide internal directories.