英文: Why does this go code fail? 问题 我用函数式编程风格写了一些Go代码来生成质数: package main import ( "fmt" ) f...
如何在Windows控制台中正确输出字符串?
英文: How to properly output a string in a Windows console with go? 问题 我有一个用Go语言编写的exe文件,它打印出以utf-8编码的...
使用Scanf + input + enter会导致从stdin中输入两次,如何清空缓冲区?
英文: using Scanf + input + enter makes for double input from stdin, how to flush? 问题 我正在使用一个便携式的未压缩版本...
为什么谷歌不使用Golang或Python作为Android的编程语言?
英文: Why doesn't Google use Golang or python as the language for android? 问题 尽管Go语言有很多优点,为什么Googl...
开发能够访问Windows的Go应用程序。
英文: Develop Go application that access to Windows 问题 我正在下载MinGW来在Windows上编译Go,但是,开发访问Windows系统调用的Go应...
作为我的编译器的后端,使用Go语言?
英文: Go as a backend for my compiler? 问题 我想为自己的编程语言制作一个编译器。流行的后端选择似乎有C、Java、LLVM、JVM字节码、.Net字节码、gcc、汇...
Golang/mgo:无法从MongoDB文档中检索int字段的值
英文: Golang/mgo: Cannot retrieve value of int field from MongoDB document 问题 我正在查询一个包含整数值的集合,并将结果文档加载...
goroutines用完内存 UPD:go错误处理
英文: goroutines run out of memory UPD: go error handling 问题 <b>UPD</b>:原来,这是关于Go语言中错误处理的问...
在Go中解析XML
英文: Parsing xml in Go 问题 我想解析类似示例中结构化的XML的位。我一直遇到值为空的问题。这只是我正在处理的简化版本,只是为了显示问题。 package main import ...
为什么mgo不返回插入文档的ID?
英文: Why does mgo not return the ID of inserted document? 问题 根据文档(http://godoc.org/launchpad.net/mgo/...
11727