Versions in this module Expand all Collapse all v1 v1.2.1 Mar 21, 2017 v1.2.0 Mar 21, 2017 Changes in this version + func AddImport(fset *token.FileSet, f *ast.File, ipath string) (added bool) + func AddNamedImport(fset *token.FileSet, f *ast.File, name, ipath string) (added bool) + func DeleteImport(fset *token.FileSet, f *ast.File, path string) (deleted bool) + func DeleteNamedImport(fset *token.FileSet, f *ast.File, name, path string) (deleted bool) + func Imports(fset *token.FileSet, f *ast.File) [][]*ast.ImportSpec + func NodeDescription(n ast.Node) string + func PathEnclosingInterval(root *ast.File, start, end token.Pos) (path []ast.Node, exact bool) + func RewriteImport(fset *token.FileSet, f *ast.File, oldPath, newPath string) (rewrote bool) + func Unparen(e ast.Expr) ast.Expr + func UsesImport(f *ast.File, path string) (used bool)