README ¶ https://godoc.org/github.com/jeremyschlatter/refactor Expand ▾ Collapse ▴ Documentation ¶ Overview ¶ Package refactor provides utilities for writing one-off refactoring scripts. Index ¶ func WalkPkgs(pkgs []string, editFn func(ast.Node)) []error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func WalkPkgs ¶ func WalkPkgs(pkgs []string, editFn func(ast.Node)) []error WalkPkgs parses the packages with import functions given in pkgs, then concurrently walks all of them, calling editFn for each node in the resulting ASTs. After the walk, it prints the ASTs back out, overwriting the original files. Types ¶ This section is empty. Source Files ¶ View all Source files refactor.go Click to show internal directories. Click to hide internal directories.