5 ms·
What is the dir/... syntax. I never saw the doc on that one.
by 0xdeadbeefbabe 9y ago
What is the dir/... syntax. I never saw the doc on that one.
- jimbishopp 9y agoWildcard: "An import path is a pattern if it includes one or more "..." wildcards ... For example, net/... expands to net and packages in its subdirectories." https://golang.org/cmd/go/#hdr-Description_of_package_lists https://golang.org/cmd/go/#hdr-Description_of_package_lists
- tbrock 9y agoRight but was this a thing before golang existed or is it specific to go commands? It was certainly popularized by "go get ./...".
- lobster_johnson 9y agoIt's specific to Go. Shell globbing has "⁎⁎", though.