英文: Which packages may be imported in the go playground? 问题 我在http://play.golang.org/上找不到可以导入的包的列表。我...
将MongoDB集合查询到一个结构体中。
英文: Querying a mongo DB collection into a struct 问题 定义这个结构体: type SymbolMCAddrPort struct { ID bson....
如何在Docker Compose中运行一次命令
英文: How to run a command once in Docker compose 问题 所以我正在编写一个Docker Compose文件来部署我的Go Web服务器。我的服务器使用Mo...
Go – Parse NULL to time.Time in Struct
英文: Go - Parse NULL to time.Time in Struct 问题 我正在翻译以下内容: 我正在将一个具有time.Time类型的结构体进行转换。 t2 := time.Now...
使用sync.WaitGroup与外部函数的最佳方法是什么?
英文: Best way of using sync.WaitGroup with external function 问题 我对以下代码有一些问题: package main import ( &q...
Golang – 结构体:time.Time
英文: Golang - struct : time.Time 问题 我正在尝试将一个值转换为类型为time.Time的结构体。 该值为: t := time.Now() format := &quo...
“go build ./…” 无法找到包。
英文: "go build ./..." cannot find package 问题 我知道互联网上有很多类似的问题,并且我尝试了所有建议的解决方案,但是至少两天来我都无法解决它...
为什么我的结构体中的变量不能保持其值?
英文: Why does a variable in my struct not hold its value? 问题 如果我有以下代码: type Foo struct { bar int } 并且...
在执行”go get github.com/mkilling/goejdb”时出现了”没有这样的文件或目录”的错误。
英文: No Such file or directory on go get github.com/mkilling/goejdb 问题 在运行以下命令时: go get github.com/mk...
为什么go vet报告uint(0)的移位可能太小,只有63?
英文: Why go vet report uint(0) might be too small for shift of 63? 问题 《The Go Programming Language》书籍...
2905


