Documentation
¶
Index ¶
- func FormatSize(bytes int64) string
- func GroupByCategory(files []types.FileEntry) map[string][]types.FileEntry
- func Join(parts []string, sep string) string
- func MarshalIndentNoEscape(v any, prefix, indent string) ([]byte, error)
- func OutputFormatToString(format integrations.OutputFormat) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatSize ¶
FormatSize formats bytes into human-readable size
func GroupByCategory ¶
GroupByCategory groups file entries by their category
func MarshalIndentNoEscape ¶
MarshalIndentNoEscape marshals JSON with indentation but without HTML escaping. This prevents <, >, and & from being escaped to \u003c, \u003e, and \u0026. Unlike json.MarshalIndent which hard-codes escapeHTML: true, this function uses an Encoder with SetEscapeHTML(false) to produce cleaner output for CLI contexts.
func OutputFormatToString ¶
func OutputFormatToString(format integrations.OutputFormat) (string, error)
OutputFormatToString converts an OutputFormat to a formatter string. Returns the format string (e.g., "xml", "json") or an error for unsupported formats.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.