Skip to content

Commit

Permalink
Merge pull request #14 from bradleyfalzon/excludes-doc
Browse files Browse the repository at this point in the history
Document that wildcard matching excludes some directories
  • Loading branch information
kisielk authored Sep 24, 2016
2 parents 94d5dba + 3a3ca61 commit 5e136de
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tool.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ type Context struct {
// The path "std" is expanded to all packages in the Go standard library.
// The path "cmd" is expanded to all Go standard commands.
// The string "..." is treated as a wildcard within a path.
// When matching recursively, directories are ignored if they are prefixed with
// a dot or an underscore (such as ".foo" or "_foo"), or are named "testdata".
// Relative import paths are not converted to full import paths.
// If args is empty, a single element "." is returned.
func (c *Context) ImportPaths(args []string) []string {
Expand All @@ -37,6 +39,8 @@ func (c *Context) ImportPaths(args []string) []string {
// The path "std" is expanded to all packages in the Go standard library.
// The path "cmd" is expanded to all Go standard commands.
// The string "..." is treated as a wildcard within a path.
// When matching recursively, directories are ignored if they are prefixed with
// a dot or an underscore (such as ".foo" or "_foo"), or are named "testdata".
// Relative import paths are not converted to full import paths.
// If args is empty, a single element "." is returned.
func ImportPaths(args []string) []string {
Expand Down

0 comments on commit 5e136de

Please sign in to comment.