# Functions
CreateImports generates the import statements as a string from the provided package paths.
No description provided by the author
No description provided by the author
InjectImports inserts the missing import paths into the provided Go source code.
Deprecated: This function uses the deprecated `ast.Package` and `ast.MergePackageFiles` methods.
Deprecated: This function uses the deprecated `ast.Package` type and `ast.MergePackageFiles` method.
NewAstBundle creates a new AstBundle.
NewAstBundleV1 creates an AstBundle from a byte slice.
NewAstBundleV2 creates an AstBundle from a byte slice with a provided FileSet.
NewAstBundleV3 creates an AstBundle by parsing a file from the given path.
NewAstBundleV4 creates an AstBundle from a file path using a new FileSet.
NewAstBundleV5 creates an AstBundle by parsing a file with a specific parser mode.
NewAstBundleV6 creates an AstBundle from a file path using a new FileSet and specific parser mode.
NewPackageImportOptions creates and returns a new PackageImportOptions instance.
Deprecated: This function uses the deprecated `ast.Package` type and should be updated in the future.
# Structs
AstBundle is a wrapper for an AST file and its corresponding FileSet.
PackageImportOptions is used to manage the import paths for Go packages.