Versions in this module Expand all Collapse all v0 v0.14.0 Jan 2, 2026 Changes in this version type BuilderType + const BuilderTypeFacts + const BuilderTypeFiles + type FactsContent struct + Index *types.FactsIndex + func NewFactsContent(index *types.FactsIndex) *FactsContent + func (f *FactsContent) Type() BuilderType + func (f *FactsContent) Validate() error + type FilesContent struct + Index *types.FileIndex + func NewFilesContent(index *types.FileIndex) *FilesContent + func (f *FilesContent) Type() BuilderType + func (f *FilesContent) Validate() error v0.13.0 Dec 10, 2025 Changes in this version + const MaxListDepth + const MaxSectionDepth + const SymbolError + const SymbolInfo + const SymbolRunning + const SymbolStopped + const SymbolSuccess + const SymbolWarning + func AlignText(text string, width int, align Alignment) string + func Blue(text string) string + func Bold(text string) string + func FormatBytes(bytes int64) string + func FormatDuration(d time.Duration) string + func FormatNumber(n int64) string + func GetStatusSymbol(severity StatusSeverity) string + func Green(text string) string + func ListFormatters() []string + func Red(text string) string + func RegisterFormatter(name string, formatter Formatter) + func StripANSI(s string) string + func TruncateString(s string, maxLen int) string + func Yellow(text string) string + type Alignment string + const AlignCenter + const AlignLeft + const AlignRight + type BufferedWriter struct + func NewBufferedWriter(w io.Writer) *BufferedWriter + func NewFileWriter(path string) (*BufferedWriter, error) + func NewStdoutWriter() *BufferedWriter + func (w *BufferedWriter) Close() error + func (w *BufferedWriter) Flush() error + func (w *BufferedWriter) Write(content string) error + func (w *BufferedWriter) WriteLine(content string) error + type Buildable interface + Type func() BuilderType + Validate func() error + type BuilderType string + const BuilderTypeError + const BuilderTypeGraph + const BuilderTypeList + const BuilderTypeProgress + const BuilderTypeSection + const BuilderTypeStatus + const BuilderTypeTable + func (bt BuilderType) String() string + type Error struct + Details []string + ErrorType ErrorType + Field string + Message string + Suggestion string + Value any + func NewError(errorType ErrorType, message string) *Error + func (e *Error) AddDetail(detail string) *Error + func (e *Error) SetField(field string) *Error + func (e *Error) SetValue(value any) *Error + func (e *Error) Type() BuilderType + func (e *Error) Validate() error + func (e *Error) WithSuggestion(suggestion string) *Error + type ErrorType string + const ErrorTypeInput + const ErrorTypeRuntime + const ErrorTypeValidation + type Formatter interface + Format func(b Buildable) (string, error) + FormatMultiple func(builders []Buildable) (string, error) + Name func() string + SupportsColors func() bool + func GetFormatter(name string) (Formatter, error) + type GraphContent struct + Index *types.GraphIndex + func NewGraphContent(index *types.GraphIndex) *GraphContent + func (g *GraphContent) Type() BuilderType + func (g *GraphContent) Validate() error + type List struct + IsCompact bool + Items []ListItem + ListType ListType + func NewList(listType ListType) *List + func (l *List) AddItem(content string) *List + func (l *List) AddItemf(format string, args ...any) *List + func (l *List) AddNested(content string, nested *List) *List + func (l *List) Compact() *List + func (l *List) Type() BuilderType + func (l *List) Validate() error + type ListItem struct + Content string + Nested *List + type ListType string + const ListTypeOrdered + const ListTypeUnordered + type Progress struct + BarWidth int + Current int + Message string + ProgressType ProgressType + Total int + func NewProgress(progressType ProgressType, current, total int) *Progress + func (p *Progress) Percentage() float64 + func (p *Progress) SetCurrent(current int) *Progress + func (p *Progress) SetMessage(msg string) *Progress + func (p *Progress) ShowBar(width int) *Progress + func (p *Progress) ShowPercentage() *Progress + func (p *Progress) Type() BuilderType + func (p *Progress) Validate() error + type ProgressType string + const ProgressTypeBar + const ProgressTypePercentage + const ProgressTypeSpinner + type Registry struct + func NewRegistry() *Registry + func (r *Registry) Get(name string) (Formatter, error) + func (r *Registry) List() []string + func (r *Registry) Register(name string, formatter Formatter) + type Section struct + Items []SectionItem + Level int + Title string + WithDivider bool + func NewSection(title string) *Section + func (s *Section) AddDivider() *Section + func (s *Section) AddKeyValue(key, value string) *Section + func (s *Section) AddKeyValuef(key, format string, args ...any) *Section + func (s *Section) AddSubsection(sub *Section) *Section + func (s *Section) AddTextLine(text string) *Section + func (s *Section) SetLevel(level int) *Section + func (s *Section) Type() BuilderType + func (s *Section) Validate() error + type SectionItem struct + Key string + Subsection *Section + Text string + Type SectionItemType + Value string + type SectionItemType string + const SectionItemKeyValue + const SectionItemSubsection + const SectionItemText + type Status struct + CustomSymbol string + Details []string + Message string + Severity StatusSeverity + func NewStatus(severity StatusSeverity, message string) *Status + func (s *Status) AddDetail(detail string) *Status + func (s *Status) Type() BuilderType + func (s *Status) Validate() error + func (s *Status) WithSymbol(symbol string) *Status + type StatusSeverity string + const StatusError + const StatusInfo + const StatusRunning + const StatusStopped + const StatusSuccess + const StatusWarning + type Table struct + Alignments []Alignment + Headers []string + HideHeaders bool + IsCompact bool + Rows [][]string + func NewTable(headers ...string) *Table + func (t *Table) AddRow(cells ...string) *Table + func (t *Table) AddRowf(formats []string, values [][]any) *Table + func (t *Table) Compact() *Table + func (t *Table) HideHeader() *Table + func (t *Table) SetAlignments(alignments ...Alignment) *Table + func (t *Table) Type() BuilderType + func (t *Table) Validate() error + type Writer interface + Close func() error + Flush func() error + Write func(content string) error + WriteLine func(content string) error