我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

./…在Go中是什么意思?

I usually see ./... in golang
for example go test ./...or go fmt ./...

only know the meaning of one or two dots

It means perform the action on all packages under a directory. So for example go test ./... runs go test on the current dir + all subdirectories.

The Go tool documentation is here:

https://golang.org/doc/cmd

./... means a recursive action ( ... ) from your current directory ( ./ )

近期文章

  • 如何使用Go脚本创建新文件
  • 正常关闭大猩猩服务器
  • 与golang中的类型转换混淆
  • 将时间戳转换为golang中的ISO格式
  • Tic-Tac-Toe板的2D阵列或2D切片?
  • 如何从GoLang应用程序连接到Bigtable Emulator? 如何使用它?
  • Golang在时间种子之后按顺序生成相同的随机数? (在我的机器上运行)
  • 在Golang中使用EasyJSON
  • 高朗的CRON工作
  • golang将文件保存到桌面
  • 字符串中的指针golang
  • 如何在golang中的所有包中访问全局常量?
  • 如何在一个应用程序中创建许多HTTP服务器?
  • 使用回调和函数作为go中的类型
  • 将“ ”嵌入字符串文字时出错
  • Webhook进程在另一个goroutine上运行
  • 如何在Golang中将时间设置为dd-MMM-yyyy HH:mm:ss?
  • 如何在Golang中的mgo查询中运行$ and运算符
  • 有没有更好的方法来解析此Map?
  • 我想通过使用golang提供特定位置来将UTC时间转换为本地时间

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华