What do three dots “./…” mean in Go command line invocations?

后端 未结 2 1260
借酒劲吻你
借酒劲吻你 2020-12-02 05:26

If you run Golang tests on Travis CI, it will download all of your dependencies with three dots:

go get -d -v ./... && go build -v ./...
2条回答
  •  余生分开走
    2020-12-02 06:15

    go [command] ./...
    

    Here ./ tells to start from the current folder, ... tells to go down recursively.

    For Example:

    go list ...
    

    In any folder lists all the packages, including packages of the standard library first followed by external libraries in your go workspace.

提交回复
热议问题