`go get github.com/constabulary/gb/...`其中的`...`是什么意思?

时间:2023-01-12

浏览:192

作者:佚名

本篇文章给大家分享《`go get github.com/constabulary/gb/...`其中的`...`是什么意思?》,覆盖了Golang的常见基础知识,其实一个语言的全部知识点一篇文章是不可能说完的,但希望通过这些问题,让读者对自己的掌握程度有一定的认识(B 数),从而弥补自己的不足,更好的掌握它。

问题内容

如题,

go get github.com/constabulary/gb/...
中的
...
是什么意思?
go help get
查看了使用说明,但好像并没有相关说明。不解。

正确答案

see

go help packages

An import path is a pattern if it includes one or more "..."
wildcards, each of which can match any string, including the empty
string and strings containing slashes. Such a pattern expands to all
package directories found in the GOPATH trees with names matching the
patterns . As a special case, x/... matches x as well as x's
subdirectories . For example, net/... expands to net and packages in
its subdirectories .

今天关于《`go get github.com/constabulary/gb/...`其中的`...`是什么意思?》的内容就介绍到这里了,是不是学起来一目了然!想要了解更多关于golang的内容请关注golang学习网公众号!

本文内容来源于互联网,如有侵权请联系删除。

相关文章

更多

热门专题

更多
首页