package
0.0.0-20201102054017-282493799a89
Repository: https://github.com/golangltd/leafltd.git
Documentation: pkg.go.dev
# Functions
AddImport adds the import path to the file f, if absent.
AddNamedImport adds the import path to the file f, if absent.
DeleteImport deletes the import path from the file f, if present.
Imports returns the file imports grouped by paragraph.
NodeDescription returns a description of the concrete type of n suitable for a user interface.
PathEnclosingInterval returns the node that encloses the source interval [start, end), and all its ancestors up to the AST root.
RewriteImport rewrites any import of path oldPath to path newPath.
UsesImport reports whether a given import is used.