# Functions
Copy copies a file from a source to a destination.
CopyAll copies all files and directories from a source path to a destination path recurrsively.
CreateTempDir creates a temporary directory with a given prefix.
FindAllFiles finds all the files that match a given glob recursively.
FindFiles finds all files in a given path that matches a given glob but does not traverse recursively.
GoAstRewrite returns a go ast visitor with a given set of options.
GoImportRewrite visits and optionally mutates imports for go files.
GoImportRewritePrefix is a helper that returns a visitor that takes a source path and rewrites it as the destination path preserving any path segments after the source if it matches the sourcePrefix.
GoIsCall returns a filter that determines if a function is a given name.
GoIsPackageCall returns a filter that determines if a function is a given sel.Fn.
GoRewriteCall changes a given function as filtered by a filter to a given call noted by Fn.
GoRewritePackageCall changes a given function as filtered by a filter to a given call noted by sel.Fn.
LS returns a list of files for a given path.
MatchInject injects a given value after the any instances of a given expression.
MatchRemove removes a line if it matches a given expression.
OptCopyAllSkipGlobs sets the skip provider to a glob matcher based on a given set of glob(s).
OptCopyAllSymlinkMode sets the symlink mode.
OptGoImportAddName adds a name if one is not already specified.
OptGoImportNameMatches returns a rewrite filter that returns if an import name matches a given expression.
OptGoImportPathMatches returns a rewrite filter that returns if an import path matches a given expression.
OptGoImportPathRewrite returns a path filter and rewrite expression.
OptGoImportSetAlias sets the import alias to a given value.
OptGoImportSetPath sets an import path to a given value.
ParseGoImportRewriteRules parses go import rewrite rules as strings.
RemoveFile removes a file and prints a debug message if the context sets that flag.
RemoveQuotes removes quotes from a string.
SubstituteString rewrites a string literal.
# Variables
CopyAllSymlinkModeDeep will traverse into the link destination and copy any files recursively.
CopyAllSymlinkModeShallow will copy links from the source to the destination as links.
CopyAllSymlinkModeSkip will skip any links discovered.
# Structs
CopyAllOptions are the options for copy all.
CopyRewriter copies a source to a destination, and applies rewrite rules to the file(s) it copies.
FileInfo extends os.FileInfo with the full path.
GoAstRewriteOptions breaks the mutator out into field specific mutators.
GoImportRewriteOptions breaks the mutator out into field specific mutators.
TempDir is a directory that can be cleaned up with Close.
# Type aliases
CopyAllOption is a mutator for copy all options.
CopyAllSymlinkMode is how symlinks should be handled.
GoAstFilter is a delegate type that filters ast nodes for visiting.
GoAstNodeVisitor mutates a given node.
GoAstRewriteOption the ast rewrite options.
GoAstVisitor mutates an ast node.
GoImportRewriteOption mutates the import rewrite options.
GoImportVisitor mutates an ast import.
StringSubstitution is a mutator for a string.