Versions in this module Expand all Collapse all v0 v0.1.2 Nov 11, 2025 Changes in this version + const FormatCsv + const FormatJson + const FormatText + const FormatTextColored + func NewStorage(opts Options) importStorage + func ParseFiles(opts Options) (*importStorage, error) + func Run(args []string) + type Alias struct + Count uint + Name string + type CsvPrinter struct + func (t *CsvPrinter) Print(w io.Writer, imports []OutputImports) error + type JsonPrinter struct + func (JsonPrinter) Print(w io.Writer, imports []OutputImports) error + type Options struct + Output OutputOptions + Parse ParseOptions + Paths []string + type OutputImports struct + Aliases []Alias + Count uint + Path string + type OutputOptions struct + AliasesOnly bool + Format string + Max uint + Min uint + type ParseOptions struct + Ignore *regexp.Regexp + IgnoreAlias *regexp.Regexp + IgnoreBlank bool + IgnoreDot bool + IgnoreSame bool + Include *regexp.Regexp + IncludeAlias *regexp.Regexp + Recursive bool + type Printer interface + Print func(w io.Writer, data []OutputImports) error + type TextPrinter struct + Colored bool + func (t *TextPrinter) Print(w io.Writer, imports []OutputImports) error v0.1.1 Nov 10, 2025