Versions in this module Expand all Collapse all v1 v1.2.1 Jun 19, 2015 v1.2.0 Jun 9, 2015 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 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)