I am having trouble understanding what the following command does.
go list ./...
When I look at the official documentation https://golang.org/cmd/go/#hdr-List_packages, it is not clear to me what the ./...
argument is telling the command.
List allows duplicates while Set doesn't allow duplicate elements . All the elements of a Set should be unique if you try to insert the duplicate element in Set it would replace the existing value. List permits any number of null values in its collection while Set permits only one null value in its collection.
When you use the Remove Duplicates feature, the duplicate data will be permanently deleted. Before you delete the duplicates, it's a good idea to copy the original data to another worksheet so you don't accidentally lose any information. Select the range of cells that has duplicate values you want to remove.
If an integer or string or any items in a list are repeated more than one time, they are duplicates.
go list
requires an import path for a package and can give you some listing info for the packages matched this way (you may be interested in its -f
flag).
./...
is a wildcard that matches the current folder and all of its subfolders (execute go help packages
to read more about this somewhat hidden feature), and that can be used with all the built-in Go commands.
So go list ./...
can list all the Go packages in the current folder and its sub-folders - you may want to call it from GOPATH
for example.
go list ./...
Here ./
tells to start from the current folder, ...
tells to go down recursively.
go list ...
In any folder lists all the packages, including packages of the standard library first followed by external libraries in your go workspace.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With