Versions in this module Expand all Collapse all v0 v0.3.0 Jul 1, 2023 v0.2.0 Jun 30, 2023 Changes in this version + func FixupDefaultImportAlias(pkgTypeInfo map[string]*astTypes.Package) func(s *ast.ImportSpec) + func FixupEmbedPackage(s *ast.ImportSpec) + func FixupNoOp(_ *ast.ImportSpec) + func New(opts ...Option) types.ImportTransform + type GroupMatcher func(spec *ast.ImportSpec, path string) bool + type Option func(conf *config) + func WithCustomLocalGroupMatcher(lookup GroupMatcher) Option + func WithCustomStdlibMatcher(lookup GroupMatcher) Option + func WithLocalPrefixGroup(prefixes []string) Option + func WithNoDotGroupEnabled(enable bool) Option + func WithSideEffectGroupEnabled(enable bool) Option + func WithSpecFixups(fixups ...SpecFixup) Option + type SpecFixup func(s *ast.ImportSpec) + func DefaultSpecFixups(pkgTypeInfo map[string]*astTypes.Package) []SpecFixup