Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alexkohler/unimport
/ functions
Functions
17 in github.com/alexkohler/unimport
⨍
Functions
17
◇
Types & classes
2
↓ 2 callers
Function
allPackages
allPackages returns all the packages that can be found under the $GOPATH directories and $GOROOT matching pattern. The pattern is either "all" (all pa
import.go:135
↓ 2 callers
Function
allPackagesInFS
allPackagesInFS is like allPackages but is passed a pattern beginning ./ or ../, meaning it should scan the tree rooted at the given directory. There
import.go:246
↓ 2 callers
Function
isDir
(filename string)
unimport.go:152
↓ 2 callers
Function
matchPattern
matchPattern(pattern)(name) reports whether name matches pattern. Pattern is a limited glob pattern in which '...' means 'any string' and there is no
import.go:87
↓ 1 callers
Function
checkImports
(args []string)
unimport.go:51
↓ 1 callers
Function
exists
(filename string)
unimport.go:157
↓ 1 callers
Function
hasPathPrefix
hasPathPrefix reports whether the path s begins with the elements in prefix.
import.go:102
↓ 1 callers
Function
importPaths
importPaths returns the import paths to use for the given command line.
import.go:66
↓ 1 callers
Function
importPathsNoDotExpansion
importPathsNoDotExpansion returns the import paths to use for the given command line, but it does no ... expansion.
import.go:34
↓ 1 callers
Function
matchPackages
(pattern string)
import.go:143
↓ 1 callers
Function
matchPackagesInFS
(pattern string)
import.go:254
↓ 1 callers
Function
parseInput
(args []string, fset *token.FileSet)
unimport.go:70
↓ 1 callers
Function
treeCanMatchPattern
treeCanMatchPattern(pattern)(name) reports whether name or children of name can possibly match pattern. Pattern is the same limited glob accepted by m
import.go:119
Method
Visit
(node ast.Node)
unimport.go:162
Function
init
()
unimport.go:21
Function
main
()
unimport.go:38
Function
usage
()
unimport.go:25