英文: Why use make() to create a slice in Go? 问题 var a [4]int和b := make([]int, 4)之间有什么区别?b可以扩展,但a不能,对吗...
BiDirectional Key to <-> "CompositKey" lookup in GAE?
英文: BiDirectional Key to <-> "CompositKey" lookup in GAE? 问题 我正在GAE上编写一个Go应用程序 我有一个名...
有没有更好的方法来跟踪goroutine的响应?
英文: Any better way to keep track of goroutine responses? 问题 我正在努力理解goroutines。我创建了一个简单的程序,可以在多个搜索引擎上...
如何更改for循环的迭代器类型?
英文: How can I change the for loop iterator type? 问题 Go在默认情况下使用int作为迭代器,但我想要使用uint64。我无法找到一种方法来改变Go中f...
如何在Golang字符串中索引字符?
英文: How to index characters in a Golang string? 问题 如何获得一个"E"的输出而不是69? package main import ...
在Go语言中使用静态类型构造函数是否有任何明显的缺点?
英文: Is there any tangible downside to using static type constructors in go? 问题 我一直觉得在Go语言中使用package....
通过使用接口从数据库中检索数据
英文: Retrieve from database via mgo using interface 问题 我有以下(未经测试的)函数: func Execute(task MyInterface) ...
两个Postgres实例的结果不同
英文: Different results with 2 Postgres instances 问题 我在本地使用Postgres App运行一个Postgres 9.2.2服务器,ssmode=di...
在非默认目录中安装Go包
英文: Installing Go packages in non-default directories 问题 我在Go中创建了一个API,通过go get安装了两个包,并为自己创建了四个其他包。一...
特殊的Go包名称
英文: Special package names in Go 问题 当导入一个名为qp的自定义子包时,使用以下代码: "pkgname/qp" 编译器会报错: ... impor...
11727