Versions in this module Expand all Collapse all v3 v3.1.11 Aug 26, 2022 Changes in this version + const StandardInput + var ErrPathIsNotDir = errors.New("path is not a directory") + func IsDir(path string) (string, bool) + func WithCodeFormatting(f *SourceFile) error + func WithRemovingUnusedImports(f *SourceFile) error + func WithUsingAliasForVersionSuffix(f *SourceFile) error + type ImportsOrder string + const CompanyImportsOrder + const GeneralImportsOrder + const ProjectImportsOrder + const StdImportsOrder + type ImportsOrders []ImportsOrder + func StringToImportsOrders(s string) (ImportsOrders, error) + type SourceDir struct + func NewSourceDir(projectName string, path string, isRecursive bool) *SourceDir + func (d *SourceDir) Fix(options ...SourceFileOption) error + type SourceFile struct + func NewSourceFile(projectName, filePath string) *SourceFile + func (f *SourceFile) Fix(options ...SourceFileOption) ([]byte, bool, error) + type SourceFileOption func(f *SourceFile) error + func WithCompanyPackagePrefixes(s string) SourceFileOption + func WithImportsOrder(orders []ImportsOrder) SourceFileOption + type SourceFileOptions []SourceFileOption