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 ApplyTextEdit(fset *token.FileSet, node *ast.File, src []byte, edit *analysis.TextEdit) []byte + func RewriteImportsAST(fset *token.FileSet, node *ast.File, src []byte, opts ...Option) ([]*analysis.TextEdit, error) + func RewriteImportsSource(filename string, src []byte, opts ...Option) ([]byte, error) + type ImportDeclarationComments struct + After []*ast.CommentGroup + Before []*ast.CommentGroup + Inside []*ast.CommentGroup + type ImportDeclarationRange struct + Comments ImportDeclarationComments + End token.Pos + Pos token.Pos + Statements []types.ImportDeclaration + func ParseImportDeclarations(fset *token.FileSet, node *ast.File) (ImportDeclarationRange, error) + type Option func(opt *rewriteConfig) + func WithPrinterConfig(config *printer.Config) Option + func WithTransform(transform types.ImportTransform) Option