英文: Unsupported URL protocol 问题 我正在尝试创建一个基本的GO应用程序,使用git2go来拉取一个Git仓库,但是我遇到了一个错误,提示不支持的URL协议。有人知道为什么...
如何在Go客户端中使用Google Maps服务的Directions响应?
英文: How to use Directions response in the Go client for Google Maps Services? 问题 使用googlemaps.github...
在Go Playground中可以导入的包有哪些?
英文: 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 } 并且...
11727

