英文: How to see stack trace of test code of Go program? 问题 我使用Go的原生测试工具(go test)编写测试。但是当测试由于测试代码中的错误而...
在Mac OSX 10.8.4上,我可以在哪里找到Go的安装位置?
英文: On Mac OSX 10.8.4 where can I find the Go installation? 问题 我正在遵循这本在线书籍,在周末学习Go语言。 我尝试运行go help g...
接口作为参数。这是如何可能的?
英文: Interface as arguments. How is it possible? 问题 接口作为参数。这是怎么可能的? 这个包中有这个接口: type MatrixRO interfac...
制作一个ping库。我应该遵循实际的ping行为吗?
英文: Making a ping library. Should I follow the actual ping behaviour? 问题 我正在制作一个ping库,主要是为了好玩。 最近我在实...
When should I use concurrency in Go?
英文: When should I use concurrency in Go? 问题 除了处理多个服务器请求之外,还有其他时候需要并发吗?我问这个问题是因为并发在语言中已经被内置了,如果不使用它,我...
如何知道关闭是必要的?
英文: How do I know close is necessary? 问题 有一些情况下你需要关闭通道,而有些情况下则不必要。 这里是一个需要关闭通道的例子: queue := make(cha...
使用通道进行矩阵和盒子计数。
英文: Use channel for matrix and box counting 问题 这段代码来自最流行的Go矩阵包https://github.com/skelterjohn/go.matr...
Golang:无法在使用C库的Go程序中使用gdb。
英文: Golang: Cannot get gdb working for Go programs using C libraries 问题 平台是Mac OSX Mavericks,我从ports...
从Google Chrome中获取标签页信息的方法(C/Go)
英文: Get tab information from Google Chrome in C/Go 问题 我想收集一些关于Google Chrome运行时的信息。目前我是使用一些AppleScrip...
What does range or map return?
英文: What does range or map return? 问题 Go语言有一个非常整洁的多返回值范式。但是看起来v, ok := map[key]和v, k := range m使用了不同...
2905